#4906 Ensemble Statistics Legend Icons : Fix missing symbol text

This commit is contained in:
Magne Sjaastad
2019-10-22 13:14:16 +02:00
parent 3cbbf1fd6e
commit 2d2ce4a71e

View File

@@ -133,6 +133,15 @@ RiuQwtSymbol::RiuQwtSymbol( PointSymbolEnum riuStyle, const QString& label, Labe
void RiuQwtSymbol::renderSymbols( QPainter* painter, const QPointF* points, int numPoints ) const void RiuQwtSymbol::renderSymbols( QPainter* painter, const QPointF* points, int numPoints ) const
{ {
QwtSymbol::renderSymbols( painter, points, numPoints ); 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 );
}
}
} }
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------