Skip to content
Permalink
Browse files

fix varying line width when legend updates

fix #13302
  • Loading branch information
vmora committed Sep 9, 2015
1 parent 9c5a74a commit d7103dfb1b51bc9f28bde348b3781aba5ca107a2
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/layertree/qgslayertreemodellegendnode.cpp
@@ -173,7 +173,7 @@ QSize QgsSymbolV2LegendNode::minimumIconSize() const
{
QScopedPointer<QgsRenderContext> context( createTemporaryRenderContext() );
minSz = QgsImageOperation::nonTransparentImageRect(
QgsSymbolLayerV2Utils::symbolPreviewPixmap( mItem.symbol(), QSize( mIconSize.width(), 512 ),
QgsSymbolLayerV2Utils::symbolPreviewPixmap( mItem.symbol(), QSize( minSz.width(), 512 ),
context.data() ).toImage(),
minSz,
true ).size();

0 comments on commit d7103df

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