Salome HOME
Bug 9193:
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_Selection.cxx
index 2a763c298d2dfea20ad7b6b201b0fb70e03f9270..a77ff9a407146f775b2884cf1da1aa480f7fbb8b 100644 (file)
@@ -100,15 +100,10 @@ QtxValue SMESHGUI_Selection::param( const int ind, const QString& p ) const
 SMESH_Actor* SMESHGUI_Selection::getActor( int ind ) const
 {
   if ( ind >= 0 && ind < myDataOwners.count() ) {
-    const SalomeApp_DataOwner* owner = 
-      dynamic_cast<const SalomeApp_DataOwner*> ( myDataOwners[ ind ].get() );
-    if ( owner )
-      {
-       Handle( SALOME_InteractiveObject ) anObj = owner->IO();
-       QString entry = anObj->getEntry();
-       return dynamic_cast<SMESH_Actor*>( SMESH::FindActorByEntry( entry ) );
-      }
-      //return dynamic_cast<SMESH_Actor*>( owner->GetActor() );
+    const SalomeApp_SVTKDataOwner* owner = 
+      dynamic_cast<const SalomeApp_SVTKDataOwner*> ( myDataOwners[ ind ].get() );
+    if ( owner )    
+      return dynamic_cast<SMESH_Actor*>( owner->GetActor() );
   }
   return 0;
 }