Skip to content

Commit

Permalink
[composer] fixed composer legends inappropriately connected to the fi…
Browse files Browse the repository at this point in the history
…rst composer map item on creation from XML
  • Loading branch information
olivierdalang authored and nyalldawson committed Jan 27, 2014
1 parent 177e5a1 commit d876ea2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/core/composer/qgscomposition.cpp
Expand Up @@ -1862,12 +1862,6 @@ void QgsComposition::addComposerScaleBar( QgsComposerScaleBar* scaleBar )

void QgsComposition::addComposerLegend( QgsComposerLegend* legend )
{
//take first available map
QList<const QgsComposerMap*> mapItemList = composerMapItems();
if ( mapItemList.size() > 0 )
{
legend->setComposerMap( mapItemList.at( 0 ) );
}
addItem( legend );
emit composerLegendAdded( legend );
clearSelection();
Expand Down

0 comments on commit d876ea2

Please sign in to comment.