Skip to content

Commit d7103df

Browse files
committedSep 9, 2015
fix varying line width when legend updates
fix #13302
1 parent 9c5a74a commit d7103df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/layertree/qgslayertreemodellegendnode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ QSize QgsSymbolV2LegendNode::minimumIconSize() const
173173
{
174174
QScopedPointer<QgsRenderContext> context( createTemporaryRenderContext() );
175175
minSz = QgsImageOperation::nonTransparentImageRect(
176-
QgsSymbolLayerV2Utils::symbolPreviewPixmap( mItem.symbol(), QSize( mIconSize.width(), 512 ),
176+
QgsSymbolLayerV2Utils::symbolPreviewPixmap( mItem.symbol(), QSize( minSz.width(), 512 ),
177177
context.data() ).toImage(),
178178
minSz,
179179
true ).size();

0 commit comments

Comments
 (0)
Please sign in to comment.