#9156 Use PdmPointer to avoid dangling pointer in Plot Editor

This commit is contained in:
Magne Sjaastad
2022-08-04 13:15:02 +02:00
parent 3a1fe7d04f
commit 0cfdaab720
2 changed files with 5 additions and 2 deletions

View File

@@ -164,7 +164,10 @@ void RicSummaryPlotEditorUi::updateFromSummaryPlot( RimSummaryPlot*
if ( m_targetPlot )
{
targetPlot->firstAncestorOfType( m_plotContainer );
RimSummaryMultiPlot* parentPlot = nullptr;
targetPlot->firstAncestorOfType( parentPlot );
m_plotContainer = parentPlot;
populateCurveCreator( *m_targetPlot );
syncPreviewCurvesFromUiSelection();
setInitialCurveVisibility( targetPlot );