Skip to content
Permalink
Browse files

Correctly antialias label settings preview thumbnails

  • Loading branch information
nyalldawson committed Jul 27, 2020
1 parent b5eb699 commit 3777030da93a3a3ebd0d2fa224171563dc8ca7d1
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/core/labeling/qgspallabeling.cpp
@@ -1301,6 +1301,7 @@ QPixmap QgsPalLayerSettings::labelSettingsPreviewPixmap( const QgsPalLayerSettin
QgsMapToPixel newCoordXForm;
newCoordXForm.setParameters( 1, 0, 0, 0, 0, 0 );
context.setMapToPixel( newCoordXForm );
context.setFlag( QgsRenderContext::Antialiasing, true );

context.setScaleFactor( QgsApplication::desktop()->logicalDpiX() / 25.4 );
context.setUseAdvancedEffects( true );

0 comments on commit 3777030

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