]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
PAL10480 - crash if popup in VISU is called with closed VTKViewer
authorasl <asl@opencascade.com>
Fri, 11 Nov 2005 09:43:27 +0000 (09:43 +0000)
committerasl <asl@opencascade.com>
Fri, 11 Nov 2005 09:43:27 +0000 (09:43 +0000)
src/VISUGUI/VisuGUI_Tools.cxx

index 9e45ffb9910d70cab2d74c591aa48f476a45de68..83eab7448da805b5fd5b2f614c54af15ac54f798 100644 (file)
@@ -658,7 +658,7 @@ namespace VISU
       else
       {
        SUIT_ViewManager* aViewManager = anApp->getViewManager( SVTK_Viewer::Type(), theCreate );
-       return dynamic_cast<SVTK_ViewWindow*>( aViewManager->getActiveView() );
+       return aViewManager ? dynamic_cast<SVTK_ViewWindow*>( aViewManager->getActiveView() ) : 0;
       }
     }
     return NULL;