]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #394 Undo-ing a Sketch element
authornds <natalia.donis@opencascade.com>
Fri, 13 Feb 2015 12:57:53 +0000 (15:57 +0300)
committernds <natalia.donis@opencascade.com>
Fri, 13 Feb 2015 12:57:53 +0000 (15:57 +0300)
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.

src/PartSet/PartSet_SketcherMgr.cpp

index fcc4576d4b4482353986af206e39500a391e5a47..cda45d1ba503d80c1ec87cae99a3c60e9ba16fe9 100644 (file)
@@ -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<XGUI_ModuleConnector*>(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;
 }