Add additional check

This commit is contained in:
Jon Jenssen 2020-08-05 13:36:54 +02:00
parent 0ce53a3219
commit ea32743ad5

View File

@ -301,7 +301,8 @@ RimGeoMechContourMapView* RicNewContourMapViewFeature::createGeoMechContourMapFr
contourMap->setDefaultCustomName();
// make sure no surfaces are shown in the view when the contourmap is generated
contourMap->surfaceInViewCollection()->setCheckState( Qt::Unchecked );
if ( contourMap->surfaceInViewCollection() )
contourMap->surfaceInViewCollection()->setCheckState( Qt::Unchecked );
caf::PdmDocument::updateUiIconStateRecursively( contourMap );