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();
|
m_curves.deleteAllChildObjects();
|
||||||
|
|
||||||
RimSummaryPlot* parentPlot;
|
RimSummaryPlot* parentPlot;
|
||||||
firstAncestorOrThisOfTypeAsserted(parentPlot);
|
firstAncestorOrThisOfType(parentPlot);
|
||||||
if (parentPlot->qwtPlot())
|
if (parentPlot && parentPlot->qwtPlot())
|
||||||
{
|
{
|
||||||
parentPlot->qwtPlot()->removeEnsambleCurveSetLegend(this);
|
parentPlot->qwtPlot()->removeEnsambleCurveSetLegend(this);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user