Skip to content

Commit 2856981

Browse files
committedSep 4, 2015
[labelling] set full rule of qpainterpath for text/buffer rendering
1 parent 13e1959 commit 2856981

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/core/qgspallabeling.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4802,6 +4802,7 @@ void QgsPalLabeling::drawLabel( pal::LabelPosition* label, QgsRenderContext& con
48024802
{
48034803
// draw label's text, QPainterPath method
48044804
QPainterPath path;
4805+
path.setFillRule( Qt::WindingFill );
48054806
path.addText( 0, 0, tmpLyr.textFont, component.text() );
48064807

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

48724873
QPainterPath path;
4874+
path.setFillRule( Qt::WindingFill );
48734875
path.addText( 0, 0, tmpLyr.textFont, component.text() );
48744876
QPen pen( tmpLyr.bufferColor );
48754877
pen.setWidthF( penSize );

0 commit comments

Comments
 (0)
Please sign in to comment.