From: jfa Date: Mon, 6 Feb 2006 16:21:46 +0000 (+0000) Subject: Start fixing bug 11416: 'Display', 'Display only' and 'Erase' don't work for 'Post... X-Git-Tag: mergeto_trunk_07Feb06~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=79028eaf129d5f7f4a51c21efd93c736271f2475;p=modules%2Fvisu.git Start fixing bug 11416: 'Display', 'Display only' and 'Erase' don't work for 'Post-Pro' root object. --- 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();