From: asl Date: Wed, 5 Apr 2006 07:15:55 +0000 (+0000) Subject: PAL11954 - VTK must be activated in PostPro, if there is no view of PointView viewer X-Git-Tag: mergeto_OCC_debug_for_3_2_0b1_07Apr06~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6a2f4f67a9ad145ab18756e535a1cd28aba2ba22;p=modules%2Fvisu.git PAL11954 - VTK must be activated in PostPro, if there is no view of PointView viewer --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 1c734599..9322dc87 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -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() );