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 committed Oct 5, 2011
1 parent 9ec8023 commit 514d121
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mapserver/qgsprojectparser.cpp
Expand Up @@ -1193,8 +1193,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 514d121

Please sign in to comment.