]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Start fixing bug 11416: 'Display', 'Display only' and 'Erase' don't work for 'Post...
authorjfa <jfa@opencascade.com>
Mon, 6 Feb 2006 16:21:46 +0000 (16:21 +0000)
committerjfa <jfa@opencascade.com>
Mon, 6 Feb 2006 16:21:46 +0000 (16:21 +0000)
src/VISUGUI/VisuGUI_Module.cxx

index 2ae2cea1c0830a6c8572f01880adf3c3b49bd256..f496c5dcd25e2f6202f6c03e98fa634cf4f27b3e 100644 (file)
@@ -983,8 +983,10 @@ VisuGUI_Module
   QApplication::setOverrideCursor(Qt::waitCursor);
 
   if(LightApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this)){
-    SALOME_ListIO aList;
-    aSelectionMgr->selectedObjects(aList);
+    SALOME_ListIO aSel, aList;
+    aSelectionMgr->selectedObjects(aSel);
+    extractContainers(aSel, aList);
+
     for(SALOME_ListIteratorOfListIO it( aList ); it.More(); it.Next()){
       Handle(SALOME_InteractiveObject) anIO = it.Value();
       CORBA::Object_var anObject = GetSelectedObj( GetAppStudy(this), anIO->getEntry() );
@@ -1067,9 +1069,10 @@ VisuGUI_Module
 {
   QApplication::setOverrideCursor(Qt::waitCursor);
 
-  SALOME_ListIO aList;
   LightApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
-  aSelectionMgr->selectedObjects(aList);
+  SALOME_ListIO aSel, aList;
+  aSelectionMgr->selectedObjects(aSel);
+  extractContainers(aSel, aList);
 
   for(SALOME_ListIteratorOfListIO it( aList ); it.More(); it.Next()){
     Handle(SALOME_InteractiveObject) anIO = it.Value();