]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Mantis issue 0021069: Hide selected in explode function. Fix remark 0010687.
authorjfa <jfa@opencascade.com>
Thu, 21 Apr 2011 05:26:25 +0000 (05:26 +0000)
committerjfa <jfa@opencascade.com>
Thu, 21 Apr 2011 05:26:25 +0000 (05:26 +0000)
src/EntityGUI/EntityGUI_SubShapeDlg.cxx
src/GroupGUI/GroupGUI_GroupDlg.cxx

index 9fbc5775b157d6bf869ebf232b5b96087aa143b8..5046c925d6c03769de5753cb3e35c41783df89a2 100644 (file)
@@ -638,6 +638,8 @@ void EntityGUI_SubShapeDlg::activateSelection()
   if (!myObject->_is_nil() && !isAllSubShapes())
   {
     GEOM_Displayer* aDisplayer = getDisplayer();
+    aDisplayer->Erase(myObject, false, false);
+
     int prevDisplayMode = aDisplayer->SetDisplayMode(0);
 
     SUIT_ViewWindow* aViewWindow = 0;
index 9c300905917485dbe0b3eb9e105f90c998e9ca9e..cae505b785c3cbf302381ac1060f2ed90f4785eb 100644 (file)
@@ -784,6 +784,8 @@ void GroupGUI_GroupDlg::activateSelection()
       myIsShapeType) // check if shape type is already choosen by user
   {
     GEOM_Displayer* aDisplayer = getDisplayer();
+    aDisplayer->Erase(myMainObj, false, false);
+
     int prevDisplayMode = aDisplayer->SetDisplayMode(0);
 
     SUIT_ViewWindow* aViewWindow = 0;