Skip to content

Commit

Permalink
Use render context when drawing layout legends
Browse files Browse the repository at this point in the history
  • Loading branch information
roya0045 authored and nyalldawson committed Jan 14, 2019
1 parent a149e83 commit 046bec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/layout/qgslayoutitemlegend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ void QgsLayoutItemLegend::draw( QgsLayoutItemRenderContext &context )
QgsLegendRenderer legendRenderer( mLegendModel.get(), mSettings );
legendRenderer.setLegendSize( mSizeToContents ? QSize() : rect().size() );

legendRenderer.drawLegend( painter );
legendRenderer.drawLegend( context.renderContext() );

painter->restore();
}
Expand Down

0 comments on commit 046bec4

Please sign in to comment.