From: vsv Date: Wed, 24 Jul 2019 15:34:10 +0000 (+0300) Subject: Issue #2970: Set size of Sketcher plane by user request X-Git-Tag: VEDF2019Lot4~94 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b0d599305446d6542baefbf4bb7bcf5ae2de4633;p=modules%2Fshaper.git Issue #2970: Set size of Sketcher plane by user request --- diff --git a/src/PartSet/PartSet_WidgetSketchLabel.cpp b/src/PartSet/PartSet_WidgetSketchLabel.cpp index 75386d957..bb77a72ae 100644 --- a/src/PartSet/PartSet_WidgetSketchLabel.cpp +++ b/src/PartSet/PartSet_WidgetSketchLabel.cpp @@ -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