From: asl Date: Tue, 8 Nov 2005 10:08:01 +0000 (+0000) Subject: PAL10209 - after operation display/erase GEOM objects must be selected in viewer X-Git-Tag: V3_1_0a3~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3e43b823485fbb7465c16b93640d2e07aa5d9ff0;p=modules%2Fgeom.git PAL10209 - after operation display/erase GEOM objects must be selected in viewer --- diff --git a/src/DisplayGUI/DisplayGUI.cxx b/src/DisplayGUI/DisplayGUI.cxx index 0ee5a70ee..3be30b5e1 100644 --- a/src/DisplayGUI/DisplayGUI.cxx +++ b/src/DisplayGUI/DisplayGUI.cxx @@ -99,6 +99,9 @@ DisplayGUI::~DisplayGUI() bool DisplayGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent) { DisplayGUI* myDisplayGUI = GetDisplayGUI( getGeometryGUI() ); + LightApp_SelectionMgr *Sel = getGeometryGUI()->getApp()->selectionMgr(); + SALOME_ListIO selected; + Sel->selectedObjects( selected ); switch (theCommandID) { case 211: // MENU VIEW - WIREFRAME/SHADING @@ -155,6 +158,7 @@ bool DisplayGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent) break; } } + Sel->setSelectedObjects( selected ); return true; }