From 0ce53a321970850880b65bb3bae4927167ebe7c8 Mon Sep 17 00:00:00 2001 From: Jon Jenssen Date: Wed, 5 Aug 2020 13:20:59 +0200 Subject: [PATCH] Fix for issue #6187 - hide surfaces when creating a contour map --- ApplicationCode/Commands/RicNewContourMapViewFeature.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ApplicationCode/Commands/RicNewContourMapViewFeature.cpp b/ApplicationCode/Commands/RicNewContourMapViewFeature.cpp index e4c68a4587..5eee4bf317 100644 --- a/ApplicationCode/Commands/RicNewContourMapViewFeature.cpp +++ b/ApplicationCode/Commands/RicNewContourMapViewFeature.cpp @@ -31,6 +31,7 @@ #include "RimGeoMechContourMapViewCollection.h" #include "RimGeoMechView.h" +#include "RimSurfaceInViewCollection.h" #include "RimFaultInViewCollection.h" #include "RimSimWellInViewCollection.h" @@ -298,6 +299,9 @@ RimGeoMechContourMapView* RicNewContourMapViewFeature::createGeoMechContourMapFr contourMap->setGeoMechCase( geoMechCase ); contourMap->setBackgroundColor( cvf::Color3f( 1.0f, 1.0f, 0.98f ) ); // Ignore original view background contourMap->setDefaultCustomName(); + + // make sure no surfaces are shown in the view when the contourmap is generated + contourMap->surfaceInViewCollection()->setCheckState( Qt::Unchecked ); caf::PdmDocument::updateUiIconStateRecursively( contourMap );