Skip to content
Permalink
Browse files

composer legend styles fix

  • Loading branch information
blazek committed Mar 26, 2013
1 parent ee84bb1 commit 8bf6df24455e296d80ee10b2c6710d2f3755e772
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/composer/qgscomposerlegenditem.cpp
@@ -385,7 +385,8 @@ void QgsComposerLayerItem::setDefaultStyle()
QgsFeatureRendererV2* renderer = vLayer->rendererV2();
if ( renderer )
{
if ( renderer->legendSymbolItems().size() > 1 )
QPair<QString, QgsSymbolV2*> symbolItem = renderer->legendSymbolItems().value( 0 );
if ( renderer->legendSymbolItems().size() > 1 || !symbolItem.first.isEmpty() )
{
setStyle( QgsComposerLegendStyle::Subgroup );
}

0 comments on commit 8bf6df2

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