Salome HOME
IPAL 0052196: TC7.3.0:runSalome --logger --modules=COMPONENT,CALCULATOR throw trace...
[modules/gui.git] / src / LightApp / LightApp_SelectionMgr.cxx
index 4e8eb3e8604e9a177079553b9d512b1941ba8b3f..cc4c573caa35fbbb736f42f16e471dfb9af19625 100644 (file)
@@ -113,7 +113,7 @@ void LightApp_SelectionMgr::selectedObjects( SALOME_ListIO& theList, const QStri
        if ( !owner )
          continue;
 
-       if ( !aSet.contains( owner->entry() ) ) {
+       if ( !aSet.contains( owner->entry() ) && !owner->IO().IsNull() ) {
          selList.append( owner->IO() );
          aSet.insert( owner->entry() );
        }
@@ -209,7 +209,7 @@ void LightApp_SelectionMgr::selectedObjects( QStringList& theList, const QString
        if ( !owner )
          continue;
 
-       if ( !aSet.contains( owner->entry() ) ) {
+        if ( !aSet.contains( owner->entry() ) ) {
          selList.append( owner->entry() );
          aSet.insert( owner->entry() );
        }
@@ -395,7 +395,7 @@ void LightApp_SelectionMgr::selectedSubOwners( MapEntryOfMapOfInteger& theMap )
       dynamic_cast<const LightApp_DataSubOwner*>( (*itr).operator->() );
     if ( subOwner )
     {
-//#ifndef WNT
+//#ifndef WIN32
       if ( !theMap.IsBound( TCollection_AsciiString(subOwner->entry().toLatin1().data()) ) )
 //#else
 //      if ( !theMap.IsBound( subOwner->entry().toLatin1().data() ) )