From: apo Date: Tue, 15 Nov 2005 16:06:10 +0000 (+0000) Subject: To fix Bug GVIEW10538 X-Git-Tag: BR-D5-38-2003_D2005-24-11~37 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=910ad6fa05c7f24ab20203fd7a4c1f56c3af98eb;p=modules%2Fvisu.git To fix Bug GVIEW10538 crash when deleting gauss presentation --- 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;