Skip to content

Commit

Permalink
Correctly antialias layer tree symbol previews
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 10, 2020
1 parent 3eb4f8c commit 2829f52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/layertree/qgslayertreemodellegendnode.cpp
Expand Up @@ -404,6 +404,7 @@ QgsRenderContext *QgsLayerTreeModelLegendNode::createTemporaryRenderContext() co
context->setScaleFactor( dpi / 25.4 );
context->setRendererScale( scale );
context->setMapToPixel( QgsMapToPixel( mupp ) );
context->setFlag( QgsRenderContext::Antialiasing, true );
return context.release();
}

Expand Down

0 comments on commit 2829f52

Please sign in to comment.