Skip to content
Permalink
Browse files

Merge pull request #2300 from vmora/fix13302

fix varying line width when legend updates
  • Loading branch information
3nids committed Sep 10, 2015
2 parents e2dc8bf + d7103df commit 5889a67a9371811179dde3eed7b30800ac6f8dac
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 5889a67

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