From 6e3ef1fbaf32b9570caba0fdcb20e7553f6355b3 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 5 Apr 2017 07:35:51 +0300 Subject: [PATCH] #2098 Selection is lost after drag sketch entity in viewer --- src/PartSet/PartSet_SketcherMgr.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index f724f3aa6..ea9bfeced 100755 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -443,6 +443,10 @@ void PartSet_SketcherMgr::onMouseReleased(ModuleBase_IViewWindow* theWnd, QMouse // Only for sketcher operations if (aWasDragging) { if (myDragDone) { + /// the previous selection is lost by mouse release in the viewer(Select method), but + /// it is still stored in myCurrentSelection. So, it is possible to restore selection + /// It is important for drag(edit with mouse) of sketch entities. + restoreSelection(); myCurrentSelection.clear(); } } -- 2.39.2