Skip to content

Commit b62a777

Browse files
mhugentmach0
authored andcommittedNov 13, 2011
Fix label id for GetPrint in composer
1 parent a4b7b71 commit b62a777

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/mapserver/qgsprojectparser.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1069,8 +1069,8 @@ void QgsProjectParser::printCapabilities( QDomElement& parentElement, QDomDocume
10691069
QDomNodeList composerLabelList = currentComposerElem.elementsByTagName( "ComposerLabel" );
10701070
for ( int j = 0; j < composerLabelList.size(); ++j )
10711071
{
1072-
QDomElement clabel = composerLabelList.at( j ).toElement();
1073-
QString id = clabel.attribute( "id" );
1072+
QDomElement citem = composerLabelList.at( j ).firstChildElement( "ComposerItem" );
1073+
QString id = citem.attribute( "id" );
10741074
if ( id.isEmpty() ) //only export labels with ids for text replacement
10751075
{
10761076
continue;

0 commit comments

Comments
 (0)
Please sign in to comment.