]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
PAL11954 - VTK must be activated in PostPro, if there is no view of PointView viewer
authorasl <asl@opencascade.com>
Wed, 5 Apr 2006 07:15:55 +0000 (07:15 +0000)
committerasl <asl@opencascade.com>
Wed, 5 Apr 2006 07:15:55 +0000 (07:15 +0000)
src/VISUGUI/VisuGUI.cxx

index 1c7345991b08b665e76e564c2edcf84015492e21..9322dc87b70024210206ba73d926e5fee67c80f4 100644 (file)
@@ -2771,7 +2771,8 @@ viewManagers( QStringList& theList ) const
 {
   theList.clear();
   // append SVTK viewer only if there is no opened VVTK
-  if( getApp()->getViewManager( VVTK_Viewer::Type(), false ) )
+  SUIT_ViewManager* vm = getApp()->getViewManager( VVTK_Viewer::Type(), false );
+  if( vm && vm->getViewsCount()>0 )
     theList.append( VVTK_Viewer::Type() );
   else
     theList.append( SVTK_Viewer::Type() );