From e998f9bd6ea7e651637a158731f55c2b32d7f83f Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 13 Feb 2015 15:57:53 +0300 Subject: [PATCH] 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. --- src/PartSet/PartSet_SketcherMgr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.2