Skip to content
Permalink
Browse files

[composer] fixed composer legends inappropriately connected to the fi…

…rst composer map item on creation from XML
  • Loading branch information
olivierdalang authored and nyalldawson committed Jan 27, 2014
1 parent 177e5a1 commit d876ea2af614846258777d6d8489ebecac5a6a16
Showing with 0 additions and 6 deletions.
  1. +0 −6 src/core/composer/qgscomposition.cpp
@@ -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();

0 comments on commit d876ea2

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