From 60add5a22b55e1a8976518ee6cc103bdc4f6961f Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 16 Jun 2005 10:26:15 +0000 Subject: [PATCH] Link between SALOME_InteractiveObject and SALOME_Actor was corrected --- src/SalomeApp/SalomeApp_VTKSelector.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()); -- 2.39.2