From: asl Date: Thu, 16 Jun 2005 10:26:15 +0000 (+0000) Subject: Link between SALOME_InteractiveObject and SALOME_Actor was corrected X-Git-Tag: T3_0_0_a4~108 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=60add5a22b55e1a8976518ee6cc103bdc4f6961f;p=modules%2Fgui.git Link between SALOME_InteractiveObject and SALOME_Actor was corrected --- diff --git a/src/SalomeApp/SalomeApp_VTKSelector.cxx b/src/SalomeApp/SalomeApp_VTKSelector.cxx index f70d906c2..b75f99b40 100644 --- a/src/SalomeApp/SalomeApp_VTKSelector.cxx +++ b/src/SalomeApp/SalomeApp_VTKSelector.cxx @@ -120,7 +120,10 @@ SalomeApp_VTKSelector if(const SalomeApp_SVTKDataOwner* anOwner = dynamic_cast(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 - "<getEntry());