Skip to content

Commit 334103d

Browse files
committedJun 14, 2019
[layouts] Always use the correct legend size when rendering legends
No existing known bugs caused by this, but it should be done anyway and will help make future legend related work less confusing...
1 parent f432471 commit 334103d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/layout/qgslayoutitemlegend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ void QgsLayoutItemLegend::draw( QgsLayoutItemRenderContext &context )
174174
}
175175

176176
QgsLegendRenderer legendRenderer( mLegendModel.get(), mSettings );
177-
legendRenderer.setLegendSize( mSizeToContents ? QSize() : rect().size() );
177+
legendRenderer.setLegendSize( rect().size() );
178178

179179
legendRenderer.drawLegend( context.renderContext() );
180180

0 commit comments

Comments
 (0)
Please sign in to comment.