Skip to content
Permalink
Browse files

Test fixes

  • Loading branch information
nyalldawson committed Jun 5, 2020
1 parent bab8384 commit 9d8c6b4346f929bef5c1ce80952366bfb78578ef
@@ -664,6 +664,7 @@ QJsonObject QgsSymbolLegendNode::exportSymbolToJson( const QgsLegendSettings &se
ctx.setRendererScale( settings.mapScale() );
ctx.setMapToPixel( QgsMapToPixel( 1 / ( settings.mmPerMapUnit() * ctx.scaleFactor() ) ) );
ctx.setForceVectorOutput( true );
ctx.setFlag( QgsRenderContext::Antialiasing, context.flags() & QgsRenderContext::Antialiasing );
Q_NOWARN_DEPRECATED_POP

// ensure that a minimal expression context is available
@@ -102,6 +102,7 @@ static QJsonObject _renderJsonLegend( QgsLayerTreeModel *legendModel, const QgsL
QgsLegendRenderer legendRenderer( legendModel, settings );

QgsRenderContext context;
context.setFlag( QgsRenderContext::Antialiasing, true );
return legendRenderer.exportLegendToJson( context );
}

Binary file not shown.

0 comments on commit 9d8c6b4

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