Skip to content
Permalink
Browse files

[labelling] set full rule of qpainterpath for text/buffer rendering

  • Loading branch information
nirvn committed Sep 4, 2015
1 parent 13e1959 commit 2856981ebdf942fdeb7abf9fd8958dea946493d3
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/qgspallabeling.cpp
@@ -4802,6 +4802,7 @@ void QgsPalLabeling::drawLabel( pal::LabelPosition* label, QgsRenderContext& con
{
// draw label's text, QPainterPath method
QPainterPath path;
path.setFillRule( Qt::WindingFill );
path.addText( 0, 0, tmpLyr.textFont, component.text() );

// store text's drawing in QPicture for drop shadow call
@@ -4870,6 +4871,7 @@ void QgsPalLabeling::drawLabelBuffer( QgsRenderContext& context,
( tmpLyr.bufferSizeInMapUnits ? QgsPalLayerSettings::MapUnits : QgsPalLayerSettings::MM ), true, tmpLyr.bufferSizeMapUnitScale );

QPainterPath path;
path.setFillRule( Qt::WindingFill );
path.addText( 0, 0, tmpLyr.textFont, component.text() );
QPen pen( tmpLyr.bufferColor );
pen.setWidthF( penSize );

0 comments on commit 2856981

Please sign in to comment.
You can’t perform that action at this time.