Skip to content
Permalink
Browse files

Correctly respect antialias setting for marker fill symbol layers

(cherry-picked from 393e15b)
  • Loading branch information
nyalldawson committed Mar 6, 2018
1 parent e5c1be7 commit 5aa2aea20a612bb735a032bfde7e16dcede52068
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/symbology/qgsfillsymbollayer.cpp
@@ -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 );

0 comments on commit 5aa2aea

Please sign in to comment.
You can’t perform that action at this time.