mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#9156 Use PdmPointer to avoid dangling pointer in Plot Editor
This commit is contained in:
parent
82f6dc74c1
commit
824d5bd458
@ -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 );
|
||||
|
@ -134,5 +134,5 @@ private:
|
||||
|
||||
std::unique_ptr<RiuSummaryVectorSelectionWidgetCreator> m_summaryCurveSelectionEditor;
|
||||
|
||||
RimSummaryMultiPlot* m_plotContainer;
|
||||
caf::PdmPointer<RimSummaryMultiPlot> m_plotContainer;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user