Skip to content
Permalink
Browse files
Fix usage of composer legend in mapserver print
git-svn-id: http://svn.osgeo.org/qgis/trunk@15030 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jan 13, 2011
1 parent 4e99d6b commit 8ed3c0aba0e2e7cef047346e6b20b9a9f12c94a4
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/mapserver/qgsprojectparser.cpp
@@ -868,8 +868,11 @@ QgsComposition* QgsProjectParser::initComposition( const QString& composerTempla
}
else if ( elemName == "ComposerLegend" )
{
//legend needs to be loaded indirectly to have generic content
//and to avoid usage of x-server with pixmap icons
QgsComposerLegend* legend = new QgsComposerLegend( composition );
legend->readXML( currentElem, *mXMLDoc );
legend->_readXML( currentElem.firstChildElement( "ComposerItem" ), *mXMLDoc );
legend->updateLegend();
composition->addItem( legend );
}
else if ( elemName == "ComposerShape" )

0 comments on commit 8ed3c0a

Please sign in to comment.