]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0022800: EDF 9132 PARAVIS: Sigsegv when using pvviewer outside paravis
authorvsr <vsr@opencascade.com>
Wed, 5 Nov 2014 12:10:27 +0000 (15:10 +0300)
committervsr <vsr@opencascade.com>
Wed, 5 Nov 2014 12:10:27 +0000 (15:10 +0300)
src/GEOMGUI/GeometryGUI.cxx

index bd6b572aba3e73086835103996905dc5a0b6ef6a..1ac42576eef27acd952da19d57694f100f1d4ee4 100644 (file)
@@ -1840,8 +1840,8 @@ void GeometryGUI::onWindowActivated( SUIT_ViewWindow* win )
   if ( !win )
     return;
 
-  const bool ViewOCC = ( win->getViewManager()->getType() == OCCViewer_Viewer::Type() );
-  //const bool ViewVTK = ( win->getViewManager()->getType() == SVTK_Viewer::Type() );
+  const bool ViewOCC = ( win->getViewManager() ? win->getViewManager()->getType() == OCCViewer_Viewer::Type() : false );
+  //const bool ViewVTK = ( win->getViewManager() ? win->getViewManager()->getType() == SVTK_Viewer::Type() : false );
 
   // disable non-OCC viewframe menu commands
 //  action( GEOMOp::Op2dSketcher )->setEnabled( ViewOCC ); // SKETCHER