mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2689 Ensemble curves. Hide legend when toggling off legend tree node
This commit is contained in:
@@ -549,7 +549,7 @@ void RimEnsembleCurveSet::updateCurveColors()
|
|||||||
firstAncestorOrThisOfType(plot);
|
firstAncestorOrThisOfType(plot);
|
||||||
if (plot && plot->qwtPlot())
|
if (plot && plot->qwtPlot())
|
||||||
{
|
{
|
||||||
if (m_colorMode == BY_ENSEMBLE_PARAM)
|
if (m_colorMode == BY_ENSEMBLE_PARAM && m_legendConfig->showLegend())
|
||||||
{
|
{
|
||||||
plot->qwtPlot()->addOrUpdateEnsembleCurveSetLegend(this);
|
plot->qwtPlot()->addOrUpdateEnsembleCurveSetLegend(this);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user