mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Merge pull request #2300 from vmora/fix13302
fix varying line width when legend updates
This commit is contained in:
commit
5889a67a93
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user