From: nds Date: Fri, 13 Feb 2015 12:57:53 +0000 (+0300) Subject: Issue #394 Undo-ing a Sketch element X-Git-Tag: V_1.1.0~191 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e998f9bd6ea7e651637a158731f55c2b32d7f83f;p=modules%2Fshaper.git Issue #394 Undo-ing a Sketch element The mouse over view flag should not be updated by stopNestedSketch function. Because if it is done, the presentation is not visible until the next leave/enter viewer happens. --- diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index fcc4576d4..cda45d1ba 100644 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -602,6 +602,8 @@ void PartSet_SketcherMgr::startSketch(ModuleBase_Operation* theOperation) void PartSet_SketcherMgr::stopSketch(ModuleBase_Operation* theOperation) { + myIsMouseOverWindow = false; + XGUI_ModuleConnector* aConnector = dynamic_cast(myModule->workshop()); XGUI_Displayer* aDisplayer = aConnector->workshop()->displayer(); @@ -653,7 +655,6 @@ void PartSet_SketcherMgr::stopNestedSketch(ModuleBase_Operation* ) { connectToPropertyPanel(false); myIsPropertyPanelValueChanged = false; - myIsMouseOverWindow = false; myIsMouseOverViewProcessed = true; }