From 910ad6fa05c7f24ab20203fd7a4c1f56c3af98eb Mon Sep 17 00:00:00 2001 From: apo Date: Tue, 15 Nov 2005 16:06:10 +0000 Subject: [PATCH] To fix Bug GVIEW10538 crash when deleting gauss presentation --- src/VISUGUI/VisuGUI_Tools.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/VISUGUI/VisuGUI_Tools.cxx b/src/VISUGUI/VisuGUI_Tools.cxx index b764a1aa..a8474539 100644 --- a/src/VISUGUI/VisuGUI_Tools.cxx +++ b/src/VISUGUI/VisuGUI_Tools.cxx @@ -611,8 +611,8 @@ namespace VISU return wnd; else { - SUIT_ViewManager* aViewManager = anApp->getViewManager( SVTK_Viewer::Type(), theCreate ); - return dynamic_cast( aViewManager->getActiveView() ); + if(SUIT_ViewManager* aViewManager = anApp->getViewManager( SVTK_Viewer::Type(), theCreate )) + return dynamic_cast( aViewManager->getActiveView() ); } } return NULL; -- 2.39.2