Skip to content

Commit

Permalink
Don't draw empty labels for displacement renderer
Browse files Browse the repository at this point in the history
Is inefficient and also causes QThreadPool crash on exit in python
test (related to creation of QFontMetrics in a thread?)
  • Loading branch information
nyalldawson committed Sep 30, 2016
1 parent ca7b504 commit 168688c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/symbology-ng/qgspointdisplacementrenderer.cpp
Expand Up @@ -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 );
}
}


Expand Down

0 comments on commit 168688c

Please sign in to comment.