#5867 Fix missing curve legends in plots

This commit is contained in:
Gaute Lindkvist 2020-05-05 15:08:52 +02:00
parent abd4b7c769
commit d28a426062

View File

@ -174,7 +174,7 @@ void RiuMultiPlotPage::insertPlot( RiuQwtPlotWidget* plotWidget, size_t index )
m_subTitles.insert( static_cast<int>( index ), subTitle );
RiuQwtPlotLegend* legend = nullptr;
if ( plotWidget->legend() )
if ( m_plotDefinition->legendsVisible() )
{
legend = new RiuQwtPlotLegend( this );
int legendColumns = 1;