]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Link between SALOME_InteractiveObject and SALOME_Actor was corrected
authorasl <asl@opencascade.com>
Thu, 16 Jun 2005 10:26:15 +0000 (10:26 +0000)
committerasl <asl@opencascade.com>
Thu, 16 Jun 2005 10:26:15 +0000 (10:26 +0000)
src/SalomeApp/SalomeApp_VTKSelector.cxx

index f70d906c262f56e271ed99a2c5ffb98afbf30754..b75f99b40c824f411444bdc73e9ede1562eed213 100644 (file)
@@ -120,7 +120,10 @@ SalomeApp_VTKSelector
            if(const SalomeApp_SVTKDataOwner* anOwner = dynamic_cast<const SalomeApp_SVTKDataOwner*>(aDataOwner)){
              aSelector->SetSelectionMode(anOwner->GetMode());
              Handle(SALOME_InteractiveObject) anIO = anOwner->IO();
-             aSelector->AddIObject(anIO);
+             if( anOwner->GetActor() )
+               aSelector->AddIObject( anOwner->GetActor() );
+             else
+               aSelector->AddIObject(anIO);
              anAppendList.Append(anIO);
              aSelector->AddOrRemoveIndex(anIO,anOwner->GetIds(),false);
              if(MYDEBUG) MESSAGE("VTKSelector::setSelection - SVTKDataOwner - "<<anIO->getEntry());