Skip to content

Commit

Permalink
Correctly antialias label settings preview thumbnails
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 27, 2020
1 parent b5eb699 commit 3777030
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/labeling/qgspallabeling.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 3777030

Please sign in to comment.