diff --git a/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryCurve.cpp b/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryCurve.cpp index cf39322b24..5d44bf886c 100644 --- a/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryCurve.cpp +++ b/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryCurve.cpp @@ -1433,7 +1433,7 @@ void RimSummaryCurve::updateTimeAnnotations() void RimSummaryCurve::updateLegendEntryVisibilityNoPlotUpdate() { if ( !m_plotCurve ) return; - if ( !firstAncestorOrThisOfType() ) return; + if ( firstAncestorOrThisOfType() ) return; bool showLegendInPlot = m_showLegend(); if ( auto summaryPlot = firstAncestorOrThisOfType() )