Salome HOME
Join modifications from branch OCC_debug_for_3_2_0b1
[modules/gui.git] / src / LightApp / LightApp_Selection.cxx
index 454ee5320b787f776515aa0a3fce3e2671f7a2b4..dc592f522131340ede0780872cc2d08cf84e40be 100644 (file)
@@ -86,13 +86,13 @@ void LightApp_Selection::init( const QString& client, LightApp_SelectionMgr* mgr
       LightApp_DataOwner* sowner = dynamic_cast<LightApp_DataOwner*>( (*anIt ).get() );
       if( sowner )
       {
-       if( entries.contains( sowner->entry() ) )
+        entry = myStudy->referencedToEntry( sowner->entry() );
+       if( entries.contains( entry ) )
          continue;
 
-        entry = myStudy->referencedToEntry( sowner->entry() );
        entries.insert( entry, 0 );
         myEntries.insert( num, entry );
-       myIsReferences.insert( num, sowner->entry() == entry );
+       myIsReferences.insert( num, sowner->entry() != entry );
         processOwner( sowner );
        num++;
       }