From 9bbd71521c1bc752a6fac78afa9e3f8b59cabe38 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 5 Nov 2014 15:10:27 +0300 Subject: [PATCH] 0022800: EDF 9132 PARAVIS: Sigsegv when using pvviewer outside paravis --- src/GEOMGUI/GeometryGUI.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2