From: asl Date: Wed, 24 May 2006 12:45:38 +0000 (+0000) Subject: null objects must not be added into list X-Git-Tag: V3_2_0rc~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4d3878969cec8dbdd0a68922b330e0490436555f;p=modules%2Fgui.git null objects must not be added into list --- diff --git a/src/LightApp/LightApp_SelectionMgr.cxx b/src/LightApp/LightApp_SelectionMgr.cxx index a46e906c0..34715f799 100644 --- a/src/LightApp/LightApp_SelectionMgr.cxx +++ b/src/LightApp/LightApp_SelectionMgr.cxx @@ -92,12 +92,12 @@ void LightApp_SelectionMgr::selectedObjects( SALOME_ListIO& theList, const QStri QString component = study->componentDataType( refEntry ); theList.Append( new SALOME_InteractiveObject( refEntry, component, ""/*refobj->Name().c_str()*/ ) ); } - else + else if( !owner->IO().IsNull() ) theList.Append( owner->IO() ); } } else { - if( !entryMap.contains( entry ) ) + if( !entryMap.contains( entry ) && !owner->IO().IsNull() ) theList.Append( owner->IO() ); }