mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Don't draw empty labels for displacement renderer
Is inefficient and also causes QThreadPool crash on exit in python test (related to creation of QFontMetrics in a thread?)
This commit is contained in:
parent
ca7b504e5c
commit
168688c889
@ -106,7 +106,10 @@ void QgsPointDisplacementRenderer::drawGroup( QPointF centerPoint, QgsRenderCont
|
||||
//draw symbols on the circle
|
||||
drawSymbols( group, context, symbolPositions );
|
||||
//and also the labels
|
||||
drawLabels( centerPoint, symbolContext, labelPositions, group );
|
||||
if ( mLabelIndex >= 0 )
|
||||
{
|
||||
drawLabels( centerPoint, symbolContext, labelPositions, group );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user