#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

@ -590,11 +590,15 @@ void RicSummaryCurveCreator::updateTargetPlot()
{
copyEnsembleCurveAndAddToCurveSet(editedCurve, editedCurveSet);
}
newCurveSet->setParentQwtPlotNoReplot(m_targetPlot->qwtPlot());
}
m_targetPlot->enableAutoPlotTitle(m_useAutoPlotTitleProxy());
m_targetPlot->loadDataAndUpdate();
m_targetPlot->updatePlotTitle();
m_targetPlot->updateConnectedEditors();
}

View File

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