From f279da6afcf70a8d9919c3ee9a3e79a900d505fb Mon Sep 17 00:00:00 2001 From: apo Date: Thu, 1 Dec 2005 08:21:09 +0000 Subject: [PATCH] To fix a SIGSEV in popup when there is no active view manager --- 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 1fc889d1..6648937d 100644 --- a/src/VISUGUI/VisuGUI_Tools.cxx +++ b/src/VISUGUI/VisuGUI_Tools.cxx @@ -641,8 +641,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