From 93d987702fd168febf7958d447885824a3bbfc07 Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 21 Jan 2020 18:59:30 +0300 Subject: [PATCH] Fix a bug with selection for editing of different points of the same feature (sketcher line) --- src/PartSet/PartSet_SketcherMgr.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index 04eec8924..b230b6dd6 100644 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -456,9 +456,10 @@ void PartSet_SketcherMgr::onMousePressed(ModuleBase_IViewWindow* theWnd, QMouseE } } } - else - isRelaunchEditing = !myCurrentSelection.contains(aSPFeature); - + else { + if (myCurrentSelection.size() > 1) + isRelaunchEditing = !myCurrentSelection.contains(aSPFeature); + } if (isRelaunchEditing) aFOperation->commit(); -- 2.39.2