Fix regression (SIGSEGV) caused by commit 935cd274

This commit is contained in:
vsr 2017-09-29 12:06:30 +03:00
parent 579fb21c33
commit 12d2cd28a6

View File

@ -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;