Skip to content
Permalink
Browse files

Correctly respect antialias setting for marker fill symbol layers

  • Loading branch information
nyalldawson committed Mar 6, 2018
1 parent 8c780dc commit 393e15b4f51ddea248d4ee598964c5ed89ef586d
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 393e15b

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