From d28a4260622c78c90c23aa0ddda48df855ee8075 Mon Sep 17 00:00:00 2001 From: Gaute Lindkvist Date: Tue, 5 May 2020 15:08:52 +0200 Subject: [PATCH] #5867 Fix missing curve legends in plots --- ApplicationCode/UserInterface/RiuMultiPlotPage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ApplicationCode/UserInterface/RiuMultiPlotPage.cpp b/ApplicationCode/UserInterface/RiuMultiPlotPage.cpp index 6f396945fd..717062f91b 100644 --- a/ApplicationCode/UserInterface/RiuMultiPlotPage.cpp +++ b/ApplicationCode/UserInterface/RiuMultiPlotPage.cpp @@ -174,7 +174,7 @@ void RiuMultiPlotPage::insertPlot( RiuQwtPlotWidget* plotWidget, size_t index ) m_subTitles.insert( static_cast( index ), subTitle ); RiuQwtPlotLegend* legend = nullptr; - if ( plotWidget->legend() ) + if ( m_plotDefinition->legendsVisible() ) { legend = new RiuQwtPlotLegend( this ); int legendColumns = 1;