Skip to content

Commit

Permalink
composer legend styles fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed Mar 26, 2013
1 parent ee84bb1 commit 8bf6df2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/composer/qgscomposerlegenditem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 8bf6df2

Please sign in to comment.