]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
PAL10209 - after operation display/erase GEOM objects must be selected in viewer
authorasl <asl@opencascade.com>
Tue, 8 Nov 2005 10:08:01 +0000 (10:08 +0000)
committerasl <asl@opencascade.com>
Tue, 8 Nov 2005 10:08:01 +0000 (10:08 +0000)
src/DisplayGUI/DisplayGUI.cxx

index 0ee5a70ee55f03aa5db1f84e5bd5441086a3a01d..3be30b5e13dc70f8275597417771ad66c7cbea6d 100644 (file)
@@ -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;
 }