From: vsr Date: Wed, 5 Nov 2014 12:10:27 +0000 (+0300) Subject: 0022800: EDF 9132 PARAVIS: Sigsegv when using pvviewer outside paravis X-Git-Tag: V7_5_0rc1~12^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9bbd71521c1bc752a6fac78afa9e3f8b59cabe38;p=modules%2Fgeom.git 0022800: EDF 9132 PARAVIS: Sigsegv when using pvviewer outside paravis --- diff --git a/src/GEOMGUI/GeometryGUI.cxx b/src/GEOMGUI/GeometryGUI.cxx index bd6b572ab..1ac42576e 100644 --- a/src/GEOMGUI/GeometryGUI.cxx +++ b/src/GEOMGUI/GeometryGUI.cxx @@ -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