]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To fix Bug GVIEW10538
authorapo <apo@opencascade.com>
Tue, 15 Nov 2005 16:06:10 +0000 (16:06 +0000)
committerapo <apo@opencascade.com>
Tue, 15 Nov 2005 16:06:10 +0000 (16:06 +0000)
crash when deleting gauss presentation

src/VISUGUI/VisuGUI_Tools.cxx

index b764a1aa84ce092834af28d23fc285c6ecffca0b..a84745399c63227bbbcc83449bdbc5e90f8a7ac4 100644 (file)
@@ -611,8 +611,8 @@ namespace VISU
        return wnd;
       else
       {
-       SUIT_ViewManager* aViewManager = anApp->getViewManager( SVTK_Viewer::Type(), theCreate );
-       return dynamic_cast<SVTK_ViewWindow*>( aViewManager->getActiveView() );
+       if(SUIT_ViewManager* aViewManager = anApp->getViewManager( SVTK_Viewer::Type(), theCreate ))
+         return dynamic_cast<SVTK_ViewWindow*>( aViewManager->getActiveView() );
       }
     }
     return NULL;