]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
null objects must not be added into list
authorasl <asl@opencascade.com>
Wed, 24 May 2006 12:45:38 +0000 (12:45 +0000)
committerasl <asl@opencascade.com>
Wed, 24 May 2006 12:45:38 +0000 (12:45 +0000)
src/LightApp/LightApp_SelectionMgr.cxx

index a46e906c0736a25ca8c83f7ca47839fef6a692a1..34715f7992424f87b4349c38c579081e0de3c946 100644 (file)
@@ -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() );
     }