Merge pull request #2300 from vmora/fix13302

fix varying line width when legend updates
This commit is contained in:
Denis Rouzaud 2015-09-10 07:59:59 +02:00
commit 5889a67a93

View File

@ -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();