Make sure duplication of RFT plot works as expected

This commit is contained in:
Magne Sjaastad authored and GitHub committed 2025-08-01 21:57:42 +02:00
1 parent 2fc12a35e2
commit 79a7e94c8b
3 files changed
+46 -32

No files matched your search

@@ -108,7 +108,7 @@ void RicCreateRftPlotsFeature::appendRftPlotForWell( const QString& wellName, Ri
rftPlot->setSimWellOrWellPathName( wellName );
rftPlotColl->addPlot( rftPlot );
rftPlot->resolveReferencesRecursively();
rftPlot->applyInitialSelections( sourcePlot->dataSource() );
rftPlot->initializeDataSources( sourcePlot );
const auto generatedName = rftPlot->simWellOrWellPathName(); // We may have been given a default well name
const QString plotName = QString( RimWellRftPlot::plotNameFormatString() ).arg( generatedName );
@@ -142,7 +142,7 @@ void RicCreateRftPlotsFeature::appendRftPlotForWell( const QString& wellName, Ri
plotTrack->setDescription( QString( "Track %1" ).arg( rftPlot->plotCount() ) );
rftPlotColl->addPlot( rftPlot );
rftPlot->applyInitialSelections( {} );
rftPlot->initializeDataSources( nullptr );
const auto generatedName = rftPlot->simWellOrWellPathName(); // We may have been given a default well name
const QString plotName = QString( RimWellRftPlot::plotNameFormatString() ).arg( generatedName );