Skip to content

Commit 5aa2aea

Browse files
committedMar 9, 2018
Correctly respect antialias setting for marker fill symbol layers
(cherry-picked from 393e15b)
1 parent e5c1be7 commit 5aa2aea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/core/symbology/qgsfillsymbollayer.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3135,6 +3135,11 @@ void QgsPointPatternFillSymbolLayer::applyPattern( const QgsSymbolRenderContext
31353135
pointRenderContext.setRendererScale( context.renderContext().rendererScale() );
31363136
pointRenderContext.setPainter( &p );
31373137
pointRenderContext.setScaleFactor( context.renderContext().scaleFactor() );
3138+
if ( context.renderContext().flags() & QgsRenderContext::Antialiasing )
3139+
{
3140+
pointRenderContext.setFlag( QgsRenderContext::Antialiasing, true );
3141+
p.setRenderHint( QPainter::Antialiasing, true );
3142+
}
31383143
QgsMapToPixel mtp( context.renderContext().mapToPixel().mapUnitsPerPixel() );
31393144
pointRenderContext.setMapToPixel( mtp );
31403145
pointRenderContext.setForceVectorOutput( false );

0 commit comments

Comments
 (0)
Please sign in to comment.