Skip to content

Commit

Permalink
Fix label id for GetPrint in composer
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent authored and mach0 committed Nov 13, 2011
1 parent a4b7b71 commit b62a777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mapserver/qgsprojectparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1069,8 +1069,8 @@ void QgsProjectParser::printCapabilities( QDomElement& parentElement, QDomDocume
QDomNodeList composerLabelList = currentComposerElem.elementsByTagName( "ComposerLabel" );
for ( int j = 0; j < composerLabelList.size(); ++j )
{
QDomElement clabel = composerLabelList.at( j ).toElement();
QString id = clabel.attribute( "id" );
QDomElement citem = composerLabelList.at( j ).firstChildElement( "ComposerItem" );
QString id = citem.attribute( "id" );
if ( id.isEmpty() ) //only export labels with ids for text replacement
{
continue;
Expand Down

0 comments on commit b62a777

Please sign in to comment.