From 4d3878969cec8dbdd0a68922b330e0490436555f Mon Sep 17 00:00:00 2001 From: asl Date: Wed, 24 May 2006 12:45:38 +0000 Subject: [PATCH] null objects must not be added into list --- src/LightApp/LightApp_SelectionMgr.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() ); } -- 2.39.2