mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8938 Sub Plot : Fix visibility of legend
Make sure legends are set visible if any items are present in the legend
This commit is contained in:
@@ -108,7 +108,6 @@ QSize RiuQwtPlotLegend::sizeHint() const
|
||||
void RiuQwtPlotLegend::updateLegend( const QVariant& variant, const QList<QwtLegendData>& legendItems )
|
||||
{
|
||||
QwtLegend::updateLegend( variant, legendItems );
|
||||
setVisible( !legendItems.empty() );
|
||||
emit legendUpdated();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user