]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1820 Selection of two points in sketchPlane
authornds <nds@opencascade.com>
Mon, 5 Dec 2016 10:21:32 +0000 (13:21 +0300)
committernds <nds@opencascade.com>
Mon, 5 Dec 2016 10:22:09 +0000 (13:22 +0300)
Create point coincident to Origin, click in empty place in viewer

src/PartSet/PartSet_SketcherMgr.cpp

index f76d3318cab4f98dc4b5d496c6824537c934d6f4..796b63a35d077da44c3d4b9df60fa51009c7c806 100755 (executable)
@@ -395,7 +395,11 @@ void PartSet_SketcherMgr::onMousePressed(ModuleBase_IViewWindow* theWnd, QMouseE
     } else if (isSketchOpe && isEditing) {
       // If selected another object commit current result
       bool aPrevLaunchingState = myIsEditLaunching;
-      myIsEditLaunching = true;
+      /// store editing state for Edit operation in order to do not clear highlight by restart
+      /// of edit operation.
+      /// Internal edit should not be stored as editing operation as the result will be a
+      /// creation operation, where previous selection should not be used(and will be cleared)
+      myIsEditLaunching = !myModule->sketchReentranceMgr()->isInternalEditActive();
       aFOperation->commit();
 
       myIsDragging = true;