mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5527 Multiplot : Copy plots when creating a multi plot
This commit is contained in:
@@ -65,7 +65,18 @@ RicfCommandResponse RicNewMultiPlotFeature::execute()
|
||||
{
|
||||
plots.push_back( reinterpret_cast<RimPlot*>( ptr ) );
|
||||
}
|
||||
plotWindow->movePlotsToThis( plots, nullptr );
|
||||
|
||||
for ( auto plot : plots )
|
||||
{
|
||||
auto copy = dynamic_cast<RimPlot*>( plot->copyByXmlSerialization( caf::PdmDefaultObjectFactory::instance() ) );
|
||||
plotWindow->addPlot( copy );
|
||||
|
||||
copy->resolveReferencesRecursively();
|
||||
copy->revokeMdiWindowStatus();
|
||||
copy->setShowWindow( true );
|
||||
|
||||
copy->loadDataAndUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
project->updateAllRequiredEditors();
|
||||
|
||||
Reference in New Issue
Block a user