From 6a2f4f67a9ad145ab18756e535a1cd28aba2ba22 Mon Sep 17 00:00:00 2001 From: asl Date: Wed, 5 Apr 2006 07:15:55 +0000 Subject: [PATCH] PAL11954 - VTK must be activated in PostPro, if there is no view of PointView viewer --- src/VISUGUI/VisuGUI.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() ); -- 2.39.2