#2838 Ensemble Curve Name : Hide Qwt legend if result legend is used

This commit is contained in:
Magne Sjaastad
2018-05-02 14:59:38 +02:00
parent cfab910272
commit cff95a1880
3 changed files with 23 additions and 2 deletions

View File

@@ -594,6 +594,13 @@ void RimPlotCurve::updateLegendEntryVisibilityNoPlotUpdate()
// Hide legend display for curves other than the first
showLegendInQwt = false;
}
else
{
if (ensembleCurveSet->colorMode() == RimEnsembleCurveSet::BY_ENSEMBLE_PARAM)
{
showLegendInQwt = false;
}
}
}
else
{
@@ -608,8 +615,7 @@ void RimPlotCurve::updateLegendEntryVisibilityNoPlotUpdate()
showLegendInQwt = false;
}
}
}
m_qwtPlotCurve->setItemAttribute(QwtPlotItem::Legend, showLegendInQwt);
}