Skip to content

Commit

Permalink
fix varying line width when legend updates
Browse files Browse the repository at this point in the history
fix #13302
  • Loading branch information
vmora committed Sep 9, 2015
1 parent 9c5a74a commit d7103df
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 d7103df

Please sign in to comment.