From: jfa Date: Thu, 21 Apr 2011 05:26:25 +0000 (+0000) Subject: Mantis issue 0021069: Hide selected in explode function. Fix remark 0010687. X-Git-Tag: Before_19998_21191~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8cd1b6d46ddfcffacc573839cb5d60c497ecec65;p=modules%2Fgeom.git Mantis issue 0021069: Hide selected in explode function. Fix remark 0010687. --- diff --git a/src/EntityGUI/EntityGUI_SubShapeDlg.cxx b/src/EntityGUI/EntityGUI_SubShapeDlg.cxx index 9fbc5775b..5046c925d 100644 --- a/src/EntityGUI/EntityGUI_SubShapeDlg.cxx +++ b/src/EntityGUI/EntityGUI_SubShapeDlg.cxx @@ -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; diff --git a/src/GroupGUI/GroupGUI_GroupDlg.cxx b/src/GroupGUI/GroupGUI_GroupDlg.cxx index 9c3009059..cae505b78 100644 --- a/src/GroupGUI/GroupGUI_GroupDlg.cxx +++ b/src/GroupGUI/GroupGUI_GroupDlg.cxx @@ -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;