From 9e0fc90b2bdd0470320b4ca84ee67617c1f0f59e Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Wed, 9 Nov 2016 13:22:19 +0100 Subject: [PATCH] #868 Manually set summary case when pasting curve --- .../SummaryPlotCommands/RicPasteSummaryCurveFeature.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ApplicationCode/Commands/SummaryPlotCommands/RicPasteSummaryCurveFeature.cpp b/ApplicationCode/Commands/SummaryPlotCommands/RicPasteSummaryCurveFeature.cpp index e48d11c105..0973aab84e 100644 --- a/ApplicationCode/Commands/SummaryPlotCommands/RicPasteSummaryCurveFeature.cpp +++ b/ApplicationCode/Commands/SummaryPlotCommands/RicPasteSummaryCurveFeature.cpp @@ -78,6 +78,11 @@ void RicPasteSummaryCurveFeature::onActionTriggered(bool isChecked) // Resolve references after object has been inserted into the project data model newObject->resolveReferencesRecursively(); + + // If source curve is part of a curve filter, resolve of references to the summary case does not + // work when pasting the new curve into a plot. Must set summary case manually. + newObject->setSummaryCase(sourceObjects[i]->summaryCase()); + newObject->initAfterReadRecursively(); newObject->loadDataAndUpdate();