Fix item reading for GetPrint (project file format changed between 1.8 and 1.9)

This commit is contained in:
Marco Hugentobler 2012-09-06 08:28:21 +02:00
parent fb84775629
commit a88af64eeb

View File

@ -1170,7 +1170,7 @@ QgsComposition* QgsProjectParser::initComposition( const QString& composerTempla
}
//go through all the item elements and add them to the composition (and to the lists)
QDomNodeList itemNodes = composerElem.childNodes();
QDomNodeList itemNodes = compositionElem.childNodes();
for ( int i = 0; i < itemNodes.size(); ++i )
{
QDomElement currentElem = itemNodes.at( i ).toElement();