Do not plot ensemble curve set legend

This commit is contained in:
Magne Sjaastad 2018-05-03 08:05:41 +02:00
parent b21e6414f9
commit c5cd8b2a4b

View File

@ -588,19 +588,7 @@ void RimPlotCurve::updateLegendEntryVisibilityNoPlotUpdate()
this->firstAncestorOrThisOfType(ensembleCurveSet);
if (ensembleCurveSet)
{
auto firstCurve = ensembleCurveSet->firstCurve();
if (firstCurve != this)
{
// Hide legend display for curves other than the first
showLegendInQwt = false;
}
else
{
if (ensembleCurveSet->colorMode() == RimEnsembleCurveSet::BY_ENSEMBLE_PARAM)
{
showLegendInQwt = false;
}
}
m_qwtPlotCurve->setItemAttribute(QwtPlotItem::Legend, false);
}
else
{
@ -615,7 +603,7 @@ void RimPlotCurve::updateLegendEntryVisibilityNoPlotUpdate()
showLegendInQwt = false;
}
}
m_qwtPlotCurve->setItemAttribute(QwtPlotItem::Legend, showLegendInQwt);
}
m_qwtPlotCurve->setItemAttribute(QwtPlotItem::Legend, showLegendInQwt);
}