#868 Manually set summary case when pasting curve

This commit is contained in:
Magne Sjaastad 2016-11-09 13:22:19 +01:00
parent f14b4ab4d0
commit 9e0fc90b2b

View File

@ -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();