mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2903 Plot Name and Legend Text : Fix update of ensembles from curve creator
This commit is contained in:
parent
2cb123474b
commit
078191610c
@ -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();
|
||||
}
|
||||
|
||||
|
@ -158,8 +158,11 @@ RimEnsembleCurveSet::~RimEnsembleCurveSet()
|
||||
firstAncestorOrThisOfType(parentPlot);
|
||||
if (parentPlot && parentPlot->qwtPlot())
|
||||
{
|
||||
m_qwtPlotCurveForLegendText->detach();
|
||||
parentPlot->qwtPlot()->removeEnsembleCurveSetLegend(this);
|
||||
}
|
||||
|
||||
delete m_qwtPlotCurveForLegendText;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user