Salome HOME
This commit was generated by cvs2git to create tag
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_Selection.cxx
index b6a899e342cb19693267f51ecdbda88bbae2fb1f..81a656b2ec07f5e2352d03d1ece2eef7be373966 100644 (file)
@@ -312,8 +312,8 @@ QVariant SMESHGUI_Selection::isVisible( int ind ) const
     QString entry = static_cast<SalomeApp_DataOwner*>( myDataOwners[ ind ].get() )->entry();
     SMESH_Actor* actor = SMESH::FindActorByEntry( entry.latin1() );
     if ( actor && actor->hasIO() ) {
-      SVTK_RenderWindowInteractor* renderInter = SMESH::GetCurrentVtkView()->getRWInteractor();
-      return QVariant( renderInter->isVisible( actor->getIO() ), 0 );
+      if(SVTK_ViewWindow* aViewWindow = SMESH::GetCurrentVtkView())
+       return QVariant( aViewWindow->isVisible( actor->getIO() ), 0 );
     }
   }
   return QVariant( false, 0 );