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); } }