mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
[labelling] set full rule of qpainterpath for text/buffer rendering
This commit is contained in:
parent
13e1959f4d
commit
2856981ebd
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user