mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix assert in Ensemble Curveset destructor
This commit is contained in:
@@ -121,8 +121,8 @@ RimEnsambleCurveSet::~RimEnsambleCurveSet()
|
||||
m_curves.deleteAllChildObjects();
|
||||
|
||||
RimSummaryPlot* parentPlot;
|
||||
firstAncestorOrThisOfTypeAsserted(parentPlot);
|
||||
if (parentPlot->qwtPlot())
|
||||
firstAncestorOrThisOfType(parentPlot);
|
||||
if (parentPlot && parentPlot->qwtPlot())
|
||||
{
|
||||
parentPlot->qwtPlot()->removeEnsambleCurveSetLegend(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user