mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2838 Ensemble Curve Name : Hide Qwt legend if result legend is used
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user