Skip to content

Commit 8ed3c0a

Browse files
author
mhugent
committedJan 13, 2011
Fix usage of composer legend in mapserver print
git-svn-id: http://svn.osgeo.org/qgis/trunk@15030 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 4e99d6b commit 8ed3c0a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/mapserver/qgsprojectparser.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,8 +868,11 @@ QgsComposition* QgsProjectParser::initComposition( const QString& composerTempla
868868
}
869869
else if ( elemName == "ComposerLegend" )
870870
{
871+
//legend needs to be loaded indirectly to have generic content
872+
//and to avoid usage of x-server with pixmap icons
871873
QgsComposerLegend* legend = new QgsComposerLegend( composition );
872-
legend->readXML( currentElem, *mXMLDoc );
874+
legend->_readXML( currentElem.firstChildElement( "ComposerItem" ), *mXMLDoc );
875+
legend->updateLegend();
873876
composition->addItem( legend );
874877
}
875878
else if ( elemName == "ComposerShape" )

0 commit comments

Comments
 (0)
Please sign in to comment.