From: vsr Date: Fri, 29 Sep 2017 09:06:30 +0000 (+0300) Subject: Fix regression (SIGSEGV) caused by commit 935cd274 X-Git-Tag: V8_4_0b1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=12d2cd28a6a9975ca7521f27ca1891f0f82d2323;p=modules%2Fgeom.git Fix regression (SIGSEGV) caused by commit 935cd274 --- diff --git a/src/GEOMGUI/GEOM_Displayer.cxx b/src/GEOMGUI/GEOM_Displayer.cxx index 1b1c602cd..bd364b92c 100755 --- a/src/GEOMGUI/GEOM_Displayer.cxx +++ b/src/GEOMGUI/GEOM_Displayer.cxx @@ -2977,6 +2977,7 @@ void GEOM_Displayer::UpdateColorScale() foreach( SUIT_ViewWindow* window, windows ) { OCCViewer_ViewWindow* occWindow = dynamic_cast( window ); + if ( !occWindow ) continue; if ( !occWindow->getViewManager() ) continue; if ( !window->getViewManager() ) continue; if ( !window->getViewManager()->getViewModel() ) continue;