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:
Nyall Dawson 2016-09-30 14:32:19 +10:00
parent ca7b504e5c
commit 168688c889

View File

@ -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 );
}
}