0022800: EDF 9132 PARAVIS: Sigsegv when using pvviewer outside paravis

This commit is contained in:
vsr 2014-11-05 15:10:27 +03:00
parent 53ee509ba5
commit 9bbd71521c

View File

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