Skip to content

Commit

Permalink
Correctly respect antialias setting for marker fill symbol layers
Browse files Browse the repository at this point in the history
(cherry-picked from 393e15b)
  • Loading branch information
nyalldawson committed Mar 9, 2018
1 parent e5c1be7 commit 5aa2aea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/symbology/qgsfillsymbollayer.cpp
Expand Up @@ -3135,6 +3135,11 @@ void QgsPointPatternFillSymbolLayer::applyPattern( const QgsSymbolRenderContext
pointRenderContext.setRendererScale( context.renderContext().rendererScale() );
pointRenderContext.setPainter( &p );
pointRenderContext.setScaleFactor( context.renderContext().scaleFactor() );
if ( context.renderContext().flags() & QgsRenderContext::Antialiasing )
{
pointRenderContext.setFlag( QgsRenderContext::Antialiasing, true );
p.setRenderHint( QPainter::Antialiasing, true );
}
QgsMapToPixel mtp( context.renderContext().mapToPixel().mapUnitsPerPixel() );
pointRenderContext.setMapToPixel( mtp );
pointRenderContext.setForceVectorOutput( false );
Expand Down

0 comments on commit 5aa2aea

Please sign in to comment.