From 79028eaf129d5f7f4a51c21efd93c736271f2475 Mon Sep 17 00:00:00 2001 From: jfa Date: Mon, 6 Feb 2006 16:21:46 +0000 Subject: [PATCH] Start fixing bug 11416: 'Display', 'Display only' and 'Erase' don't work for 'Post-Pro' root object. --- src/VISUGUI/VisuGUI_Module.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/VISUGUI/VisuGUI_Module.cxx b/src/VISUGUI/VisuGUI_Module.cxx index 2ae2cea1..f496c5dc 100644 --- a/src/VISUGUI/VisuGUI_Module.cxx +++ b/src/VISUGUI/VisuGUI_Module.cxx @@ -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(); -- 2.39.2