#3338 Keep order of summary plot curves if you uncheck and check back curves.

This commit is contained in:
Gaute Lindkvist
2018-09-07 14:26:14 +02:00
parent 612409ac59
commit bd9d1be3c2
10 changed files with 92 additions and 1 deletions

View File

@@ -260,6 +260,26 @@ void RimEnsembleCurveSet::detachQwtCurves()
m_qwtPlotCurveForLegendText->detach();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimEnsembleCurveSet::reattachQwtCurves()
{
for (RimSummaryCurve* curve : m_curves)
{
curve->reattachQwtCurve();
}
m_qwtPlotCurveForLegendText->detach();
RimSummaryPlot* plot = nullptr;
firstAncestorOrThisOfType(plot);
if (plot)
{
m_qwtPlotCurveForLegendText->attach(plot->qwtPlot());
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------