We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 4e99d6b commit 8ed3c0aCopy full SHA for 8ed3c0a
src/mapserver/qgsprojectparser.cpp
@@ -868,8 +868,11 @@ QgsComposition* QgsProjectParser::initComposition( const QString& composerTempla
868
}
869
else if ( elemName == "ComposerLegend" )
870
{
871
+ //legend needs to be loaded indirectly to have generic content
872
+ //and to avoid usage of x-server with pixmap icons
873
QgsComposerLegend* legend = new QgsComposerLegend( composition );
- legend->readXML( currentElem, *mXMLDoc );
874
+ legend->_readXML( currentElem.firstChildElement( "ComposerItem" ), *mXMLDoc );
875
+ legend->updateLegend();
876
composition->addItem( legend );
877
878
else if ( elemName == "ComposerShape" )
0 commit comments