From 2d2ce4a71eae861bc8931961290b09c7ac34bdc9 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 22 Oct 2019 13:14:16 +0200 Subject: [PATCH] #4906 Ensemble Statistics Legend Icons : Fix missing symbol text --- ApplicationCode/UserInterface/RiuQwtSymbol.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ApplicationCode/UserInterface/RiuQwtSymbol.cpp b/ApplicationCode/UserInterface/RiuQwtSymbol.cpp index 3aeee2cb64..39cab1b5d1 100644 --- a/ApplicationCode/UserInterface/RiuQwtSymbol.cpp +++ b/ApplicationCode/UserInterface/RiuQwtSymbol.cpp @@ -133,6 +133,15 @@ RiuQwtSymbol::RiuQwtSymbol( PointSymbolEnum riuStyle, const QString& label, Labe void RiuQwtSymbol::renderSymbols( QPainter* painter, const QPointF* points, int numPoints ) const { QwtSymbol::renderSymbols( painter, points, numPoints ); + + if ( !m_globalLabel.isEmpty() ) + { + for ( int i = 0; i < numPoints; i++ ) + { + auto position = points[i]; + renderSymbolLabel( painter, position, m_globalLabel ); + } + } } //--------------------------------------------------------------------------------------------------