Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Mar 20, 2019
1 parent 4efd410 commit 2aeac0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/src/core/testqgslegendrenderer.cpp
Expand Up @@ -88,7 +88,8 @@ static QJsonObject _renderJsonLegend( QgsLayerTreeModel *legendModel, const QgsL
QgsLegendRenderer legendRenderer( legendModel, settings );

QJsonObject json;
legendRenderer.drawLegend( json );
QgsRenderContext context;
legendRenderer.exportLegendToJson( context, json );
return json;
}

Expand Down

0 comments on commit 2aeac0d

Please sign in to comment.