Skip to content

Commit

Permalink
Merge pull request #2300 from vmora/fix13302
Browse files Browse the repository at this point in the history
fix varying line width when legend updates
  • Loading branch information
3nids committed Sep 10, 2015
2 parents e2dc8bf + d7103df commit 5889a67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/layertree/qgslayertreemodellegendnode.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 5889a67

Please sign in to comment.