Salome HOME
Merge from OCC_development_generic_2006
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_Selection.cxx
index 927ac7f1600c9d342eba449d86ad5e3e97e3eae6..88d44c541e215c75c067ded42b2fd9326ab84cb2 100644 (file)
@@ -327,8 +327,8 @@ QVariant SMESHGUI_Selection::isVisible( int ind ) const
     QString ent = entry( ind );
     SMESH_Actor* actor = SMESH::FindActorByEntry( ent.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 );