Skip to content

Commit bce210e

Browse files
committed
[labelling] set full rule of qpainterpath for text/buffer rendering
(cherry-picked from 2856981)
1 parent cfc32e1 commit bce210e

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
@@ -4458,6 +4458,7 @@ void QgsPalLabeling::drawLabel( pal::LabelPosition* label, QgsRenderContext& con
44584458
{
44594459
// draw label's text, QPainterPath method
44604460
QPainterPath path;
4461+
path.setFillRule( Qt::WindingFill );
44614462
path.addText( 0, 0, tmpLyr.textFont, component.text() );
44624463

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

45284529
QPainterPath path;
4530+
path.setFillRule( Qt::WindingFill );
45294531
path.addText( 0, 0, tmpLyr.textFont, component.text() );
45304532
QPen pen( tmpLyr.bufferColor );
45314533
pen.setWidthF( penSize );

0 commit comments

Comments
 (0)