Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 8, 2020
1 parent bab8384 commit 9d8c6b4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/core/layertree/qgslayertreemodellegendnode.cpp
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/src/core/testqgslegendrenderer.cpp
Expand Up @@ -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 );
}

Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9d8c6b4

Please sign in to comment.