mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-16 00:05:45 -04:00
Correctly set antialiasing flag
This commit is contained in:
parent
b18e2607ef
commit
9001bf71a0
@ -25,6 +25,7 @@ static QgsRenderContext _createRenderContext( double mupp, double dpi, double sc
|
|||||||
context.setScaleFactor( dpi / 25.4 );
|
context.setScaleFactor( dpi / 25.4 );
|
||||||
context.setRendererScale( scale );
|
context.setRendererScale( scale );
|
||||||
context.setMapToPixel( QgsMapToPixel( mupp ) );
|
context.setMapToPixel( QgsMapToPixel( mupp ) );
|
||||||
|
context.setFlag( Qgis::RenderContextFlag::Antialiasing, true );
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user