#11966 Fix visibility control of curve legends

This commit is contained in:
Magne Sjaastad 2024-12-04 19:23:46 +01:00
parent 586aefe0b6
commit 39d19c9826

View File

@ -1433,7 +1433,7 @@ void RimSummaryCurve::updateTimeAnnotations()
void RimSummaryCurve::updateLegendEntryVisibilityNoPlotUpdate()
{
if ( !m_plotCurve ) return;
if ( !firstAncestorOrThisOfType<RimEnsembleCurveSet>() ) return;
if ( firstAncestorOrThisOfType<RimEnsembleCurveSet>() ) return;
bool showLegendInPlot = m_showLegend();
if ( auto summaryPlot = firstAncestorOrThisOfType<RimSummaryPlot>() )