From 3b7a6f8937642f5e8e0e2545dbef6ac98e611a87 Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Mon, 2 Dec 2024 09:00:05 +0100 Subject: [PATCH] #11943 Contour Map: regenerate grid and projection on sampling factor change. --- .../ProjectDataModel/RimContourMapProjection.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ApplicationLibCode/ProjectDataModel/RimContourMapProjection.cpp b/ApplicationLibCode/ProjectDataModel/RimContourMapProjection.cpp index acf64a369d..5795b3744f 100644 --- a/ApplicationLibCode/ProjectDataModel/RimContourMapProjection.cpp +++ b/ApplicationLibCode/ProjectDataModel/RimContourMapProjection.cpp @@ -391,7 +391,9 @@ void RimContourMapProjection::clearGridMapping() clearResults(); clearTimeStepRange(); - if ( m_contourMapProjection ) m_contourMapProjection->clearGridMapping(); + m_contourMapProjection.reset(); + m_contourMapGrid.reset(); + m_mapCellVisibility.clear(); }