Skip to content

Commit 514d121

Browse files
committed
Fix label id for GetPrint in composer
1 parent 9ec8023 commit 514d121

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mapserver/qgsprojectparser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,8 +1193,8 @@ void QgsProjectParser::printCapabilities( QDomElement& parentElement, QDomDocume
11931193
QDomNodeList composerLabelList = currentComposerElem.elementsByTagName( "ComposerLabel" );
11941194
for ( int j = 0; j < composerLabelList.size(); ++j )
11951195
{
1196-
QDomElement clabel = composerLabelList.at( j ).toElement();
1197-
QString id = clabel.attribute( "id" );
1196+
QDomElement citem = composerLabelList.at( j ).firstChildElement( "ComposerItem" );
1197+
QString id = citem.attribute( "id" );
11981198
if ( id.isEmpty() ) //only export labels with ids for text replacement
11991199
{
12001200
continue;

0 commit comments

Comments
 (0)