]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2155 Trim removes multi-rotation constraint, undo leads to wrong DOF
authornds <nds@opencascade.com>
Thu, 15 Feb 2018 07:15:41 +0000 (10:15 +0300)
committernds <nds@opencascade.com>
Thu, 15 Feb 2018 07:15:41 +0000 (10:15 +0300)
src/PartSet/PartSet_WidgetFeaturePointSelector.cpp

index 1b4be74c099191fe1905422c064dd38050f389ac..486138917e31a59fcf6655124d8b1990259f2fd7 100644 (file)
@@ -175,9 +175,12 @@ void PartSet_WidgetFeaturePointSelector::mouseReleased(ModuleBase_IViewWindow* t
 
   updateObject(feature());
 
-  emit focusOutWidget(this);
   // we need to deselect base feature for better visibility of selected feature
   XGUI_Tools::workshop(myWorkshop)->displayer()->clearSelected(false);
+
+  // focusOutWidget should be the last functionality in the method because after this emit,
+  // the widget may be deleted and members of this class are deleted (e.g. myWorkshop)
+  emit focusOutWidget(this);
 }
 
 //********************************************************************