#2689 Ensemble curves. Hide legend when toggling off legend tree node

This commit is contained in:
Bjørn Erik Jensen
2018-04-20 15:48:56 +02:00
parent 1ff149c668
commit b102b3025a

View File

@@ -549,7 +549,7 @@ void RimEnsembleCurveSet::updateCurveColors()
firstAncestorOrThisOfType(plot);
if (plot && plot->qwtPlot())
{
if (m_colorMode == BY_ENSEMBLE_PARAM)
if (m_colorMode == BY_ENSEMBLE_PARAM && m_legendConfig->showLegend())
{
plot->qwtPlot()->addOrUpdateEnsembleCurveSetLegend(this);
}