Skip to content

Commit

Permalink
Fix usage of composer legend in mapserver print
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15030 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jan 13, 2011
1 parent a254702 commit 9ad9e2d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mapserver/qgsprojectparser.cpp
Expand Up @@ -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" )
Expand Down

0 comments on commit 9ad9e2d

Please sign in to comment.