]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2970: Set size of Sketcher plane by user request
authorvsv <vsv@opencascade.com>
Wed, 24 Jul 2019 15:34:10 +0000 (18:34 +0300)
committervsv <vsv@opencascade.com>
Wed, 24 Jul 2019 15:34:10 +0000 (18:34 +0300)
src/PartSet/PartSet_WidgetSketchLabel.cpp

index 75386d957bd54a5a131d59174df550e0d054546c..bb77a72aefa458c48cd8e3c56e5bce74a3ba571f 100644 (file)
@@ -314,11 +314,8 @@ void PartSet_WidgetSketchLabel::updateByPlaneSelected(const ModuleBase_ViewerPrs
         isSetSizeOfView = false;
       }
     }
-    if (isSetSizeOfView)
-      aModule->sketchMgr()->previewSketchPlane()->setSizeOfView(aSizeOfView, true);
+    aModule->sketchMgr()->previewSketchPlane()->setSizeOfView(aSizeOfView, isSetSizeOfView);
     aModule->sketchMgr()->previewSketchPlane()->createSketchPlane(aSketch, myWorkshop);
-    if (isSetSizeOfView)
-      aModule->sketchMgr()->previewSketchPlane()->setSizeOfView(aSizeOfView, false);
   }
   // 2. if the planes were displayed, change the view projection