mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-24 16:10:34 +05:00
0022800: EDF 9132 PARAVIS: Sigsegv when using pvviewer outside paravis
This commit is contained in:
parent
53ee509ba5
commit
9bbd71521c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user