]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#2098 Selection is lost after drag sketch entity in viewer
authornds <nds@opencascade.com>
Wed, 5 Apr 2017 04:35:51 +0000 (07:35 +0300)
committernds <nds@opencascade.com>
Wed, 5 Apr 2017 09:53:37 +0000 (12:53 +0300)
src/PartSet/PartSet_SketcherMgr.cpp

index f724f3aa64619fdb862a6802234b490320057cd1..ea9bfeced40688690b7f857479c31538ba99f1be 100755 (executable)
@@ -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();
         }
       }