Summary Curve: Do not show legend if empty

This commit is contained in:
Magne Sjaastad 2022-04-26 10:48:05 +02:00
parent 79fdc825ca
commit 8c76921bed

View File

@ -119,7 +119,7 @@ void RiuSummaryMultiPlotPage::reinsertPlotWidgets()
if ( legends[visibleIndex] )
{
if ( m_plotDefinition->legendsVisible() )
if ( m_plotDefinition->legendsVisible() && !legends[visibleIndex]->isEmpty() )
{
int legendColumns = 1;
if ( m_plotDefinition->legendsHorizontal() )