Implement creation of combination plots from selected plots

This commit is contained in:
Gaute Lindkvist
2019-10-31 15:12:54 +01:00
parent 30db19a1d0
commit e8c745d704
7 changed files with 115 additions and 17 deletions

View File

@@ -114,14 +114,14 @@ void RimGridPlotWindow::insertPlot( RimPlotInterface* plot, size_t index )
if ( plot )
{
m_plots.insert( index, toPdmObjectAsserted( plot ) );
plot->setChecked( true );
if ( m_viewer )
{
plot->createPlotWidget();
plot->setChecked( true );
m_viewer->insertPlot( plot->viewer(), index );
plot->updateAfterInsertingIntoGridPlotWindow();
}
plot->updateAfterInsertingIntoGridPlotWindow();
onPlotAdditionOrRemoval();
}