From: nds Date: Wed, 18 Nov 2015 16:10:05 +0000 (+0300) Subject: Reseted Line should not be visualized in the viewer. X-Git-Tag: V_2.0.0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0a7427049c173f3a43cfab497a1a4602c94f52c9;p=modules%2Fshaper.git Reseted Line should not be visualized in the viewer. Quick move from viewer to PP caused the line's point moving to origin. --- diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index 6e600764e..eddf4b07e 100755 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -270,7 +270,6 @@ void PartSet_SketcherMgr::onLeaveViewPort() ModuleBase_ModelWidget* anActiveWidget = getActiveWidget(); if (anActiveWidget) anActiveWidget->reset(); - aDisplayer->enableUpdateViewer(isEnableUpdateViewer); // hides the presentation of the current operation feature // the feature is to be erased here, but it is correct to call canDisplayObject because @@ -281,6 +280,9 @@ void PartSet_SketcherMgr::onLeaveViewPort() FeaturePtr aFeature = aFOperation->feature(); visualizeFeature(aFeature, aFOperation->isEditOperation(), canDisplayObject(aFeature)); } + // we should update viewer after the presentation are hidden in the viewer + // otherwise the reset presentation(line) appears in the viewer(by quick move from viewer to PP) + aDisplayer->enableUpdateViewer(isEnableUpdateViewer); } void PartSet_SketcherMgr::onBeforeValuesChangedInPropertyPanel()