Skip to content
Permalink
Browse files

Use render context when drawing layout legends

  • Loading branch information
roya0045 authored and nyalldawson committed Jan 14, 2019
1 parent a149e83 commit 046bec48bc1ed5951cb1b22270e2466d4cad9ab6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/layout/qgslayoutitemlegend.cpp
@@ -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();
}

0 comments on commit 046bec4

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