From 3a91412d6c10376c1483aebc6a159b36f2137190 Mon Sep 17 00:00:00 2001 From: Gaute Lindkvist Date: Mon, 15 Apr 2019 09:32:35 +0200 Subject: [PATCH] #4336 make sure data colors are updated in Grid Cross plots when changing legend colors --- ApplicationCode/ProjectDataModel/RimRegularLegendConfig.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ApplicationCode/ProjectDataModel/RimRegularLegendConfig.cpp b/ApplicationCode/ProjectDataModel/RimRegularLegendConfig.cpp index 8190927b49..ab5929d9ae 100644 --- a/ApplicationCode/ProjectDataModel/RimRegularLegendConfig.cpp +++ b/ApplicationCode/ProjectDataModel/RimRegularLegendConfig.cpp @@ -262,6 +262,7 @@ void RimRegularLegendConfig::fieldChangedByUi(const caf::PdmFieldHandle* changed firstAncestorOrThisOfType(crossPlotCurveSet); if (crossPlotCurveSet) { + crossPlotCurveSet->destroyCurves(); crossPlotCurveSet->loadDataAndUpdate(true); } }