From 8cd1b6d46ddfcffacc573839cb5d60c497ecec65 Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 21 Apr 2011 05:26:25 +0000 Subject: [PATCH] Mantis issue 0021069: Hide selected in explode function. Fix remark 0010687. --- src/EntityGUI/EntityGUI_SubShapeDlg.cxx | 2 ++ src/GroupGUI/GroupGUI_GroupDlg.cxx | 2 ++ 2 files changed, 4 insertions(+) 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; -- 2.39.2