From: nds Date: Mon, 5 Dec 2016 10:21:32 +0000 (+0300) Subject: Issue #1820 Selection of two points in sketchPlane X-Git-Tag: V_2.6.0~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=72303e4f7d8784093b408b7bff0eab7fa6c0fb9b;p=modules%2Fshaper.git Issue #1820 Selection of two points in sketchPlane Create point coincident to Origin, click in empty place in viewer --- diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index f76d3318c..796b63a35 100755 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -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;