]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2089: Update current view scale on using of view size in sketch creation
authorvsv <vsv@opencascade.com>
Wed, 5 Apr 2017 14:00:10 +0000 (17:00 +0300)
committervsv <vsv@opencascade.com>
Wed, 5 Apr 2017 14:00:25 +0000 (17:00 +0300)
src/PartSet/PartSet_WidgetSketchLabel.cpp

index bdf32db5416f40a1a99098b50d5841fd250083f1..2b53b2ec9ea889db0ed389ed93cbdb0de7b09a04 100644 (file)
@@ -310,9 +310,6 @@ void PartSet_WidgetSketchLabel::updateByPlaneSelected(const ModuleBase_ViewerPrs
     bool aRotate = Config_PropManager::boolean(SKETCH_TAB_NAME, "rotate_to_plane");
     if (aRotate) {
       myWorkshop->viewer()->setViewProjection(aXYZ.X(), aXYZ.Y(), aXYZ.Z(), aTwist);
-      PartSet_Module* aModule = dynamic_cast<PartSet_Module*>(myWorkshop->module());
-      if (aModule)
-        aModule->onViewTransformed();
     }
     QString aSizeOfViewStr = mySizeOfView->text();
     if (!aSizeOfViewStr.isEmpty()) {
@@ -328,6 +325,9 @@ void PartSet_WidgetSketchLabel::updateByPlaneSelected(const ModuleBase_ViewerPrs
         }
       }
     }
+    PartSet_Module* aModule = dynamic_cast<PartSet_Module*>(myWorkshop->module());
+    if (aModule)
+      aModule->onViewTransformed();
   }
   // 3. Clear text in the label
   myStackWidget->setCurrentIndex(1);