From: nds Date: Wed, 5 Apr 2017 04:35:51 +0000 (+0300) Subject: #2098 Selection is lost after drag sketch entity in viewer X-Git-Tag: V_2.7.0~72 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6e3ef1fbaf32b9570caba0fdcb20e7553f6355b3;p=modules%2Fshaper.git #2098 Selection is lost after drag sketch entity in viewer --- 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(); } }