#2903 Plot Name and Legend Text : Fix update of ensembles from curve creator

This commit is contained in:
Magne Sjaastad
2018-05-11 20:21:44 +02:00
parent 2cb123474b
commit 078191610c
2 changed files with 7 additions and 0 deletions

View File

@@ -158,8 +158,11 @@ RimEnsembleCurveSet::~RimEnsembleCurveSet()
firstAncestorOrThisOfType(parentPlot);
if (parentPlot && parentPlot->qwtPlot())
{
m_qwtPlotCurveForLegendText->detach();
parentPlot->qwtPlot()->removeEnsembleCurveSetLegend(this);
}
delete m_qwtPlotCurveForLegendText;
}
//--------------------------------------------------------------------------------------------------