Skip to content
Permalink
Browse files

Fix GetLegendGraphic with scale on Categorized or Graduated symbol

  • Loading branch information
Stéphane Brunner
Stéphane Brunner committed Oct 19, 2013
1 parent 593026f commit 7fdedf1ab95dfddf71666a70aed5f73e2ab5f929
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/composer/qgslegendmodel.cpp
@@ -187,17 +187,17 @@ int QgsLegendModel::addVectorLayerItemsV2( QStandardItem* layerItem, QgsVectorLa

// updateSymbolV2ItemText needs layer set
updateSymbolV2ItemText( currentSymbolItem );

row++;
}
else
{
QgsComposerSymbolV2Item* currentSymbolItem = new QgsComposerSymbolV2Item( "" );
currentSymbolItem->setIcon( QgsSymbolLayerV2Utils::symbolPreviewIcon( symbolIt->second, QSize( 30, 30 ) ) );
currentSymbolItem->setSymbolV2( symbolIt->second );
layerItem->setChild( 0, 0, currentSymbolItem );
layerItem->setChild( row, 0, currentSymbolItem );
currentSymbolItem->setText( symbolIt->first );
}

row++;
}

// Don't remove row on getLegendGraphic (read only with filter)

0 comments on commit 7fdedf1

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