mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-30 17:42:13 -06:00
Always show legend items in preview plot
This commit is contained in:
1 parent
4b0f2b362e
commit
7639262106
1 file changed
+4
-1
@@ -25,6 +25,7 @@
|
||||
|
||||
#include "RimEnsembleCurveSet.h"
|
||||
#include "RimEnsembleCurveSetCollection.h"
|
||||
#include "RimMultiPlot.h"
|
||||
#include "RimNameConfig.h"
|
||||
#include "RimPlotRectAnnotation.h"
|
||||
#include "RimProject.h"
|
||||
@@ -915,7 +916,9 @@ void RimPlotCurve::updateLegendEntryVisibilityNoPlotUpdate()
|
||||
}
|
||||
}
|
||||
|
||||
if ( !anyCalculated && summaryPlot->ensembleCurveSetCollection()->curveSets().empty() && summaryPlot->curveCount() == 1 )
|
||||
auto isMultiPlot = ( firstAncestorOrThisOfType<RimMultiPlot>() != nullptr );
|
||||
|
||||
if ( !anyCalculated && isMultiPlot && summaryPlot->ensembleCurveSetCollection()->curveSets().empty() && summaryPlot->curveCount() == 1 )
|
||||
{
|
||||
// Disable display of legend if the summary plot has only one single curve
|
||||
showLegendInPlot = false;
|
||||
|
||||
Reference in new issue
Block a user