Keep source step dimension when saving/loading multiplots, including templates

This commit is contained in:
jonjenssen authored and jonjenssen committed 2022-06-03 18:05:26 +02:00
1 parent 6931d46b75
commit ed392e6300
9 files changed
+121 -84

No files matched your search

@@ -92,6 +92,8 @@ void RicSaveMultiPlotTemplateFeature::onActionTriggered( bool isChecked )
auto plot = selectedSummaryPlot();
if ( !plot ) return;
plot->storeStepDimensionFromToolbar();
QString ext = ".rpt";
if ( selectedSummaryPlot()->curveSets().size() > 0 ) ext = ".erpt";
@@ -170,6 +170,7 @@ RimSummaryMultiPlot* RicSummaryPlotTemplateTools::create( const QString& fileNam
regions );
newSummaryPlot->initAfterReadRecursively();
newSummaryPlot->loadDataAndUpdate();
collections->updateConnectedEditors();
return newSummaryPlot;