]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix regression (SIGSEGV) caused by commit 935cd274
authorvsr <vsr@opencascade.com>
Fri, 29 Sep 2017 09:06:30 +0000 (12:06 +0300)
committervsr <vsr@opencascade.com>
Fri, 29 Sep 2017 09:06:30 +0000 (12:06 +0300)
src/GEOMGUI/GEOM_Displayer.cxx

index 1b1c602cd8d29765c2b1d94a66b0eb5874cdb2ba..bd364b92cdc2a3b35c94865f44f1334136307382 100755 (executable)
@@ -2977,6 +2977,7 @@ void GEOM_Displayer::UpdateColorScale()
   foreach( SUIT_ViewWindow* window, windows )
   {
     OCCViewer_ViewWindow* occWindow = dynamic_cast<OCCViewer_ViewWindow*>( window );
+    if ( !occWindow ) continue;
     if ( !occWindow->getViewManager() ) continue;
     if ( !window->getViewManager() ) continue;
     if ( !window->getViewManager()->getViewModel() ) continue;