Skip to content
Permalink
Browse files

Fix atlas parameter loading when loading from a template composer

  • Loading branch information
Hugo Mercier
Hugo Mercier committed Oct 8, 2012
1 parent 358c638 commit 8a28d8a2e08b379880839eba8b5dce2d209285e8
Showing with 5 additions and 10 deletions.
  1. +5 −10 src/core/composer/qgscomposition.cpp
@@ -431,6 +431,11 @@ bool QgsComposition::loadFromTemplate( const QDomDocument& doc, QMap<QString, QS

//addItemsFromXML
addItemsFromXML( importDoc.documentElement(), importDoc, 0, addUndoCommands, 0 );

// read atlas parameters
QDomElement atlasElem = importDoc.documentElement().firstChildElement( "Atlas" );
atlasComposition().readXML( atlasElem, importDoc );

return true;
}

@@ -1629,13 +1634,3 @@ QString QgsComposition::encodeStringForXML( const QString& str )
return modifiedStr;
}

#if 0
void QgsComposition::setAtlasComposerMap( QgsAtlasComposerMap* map )
{
if ( mAtlasComposerMap != 0 )
{
delete mAtlasComposerMap;
}
mAtlasComposerMap = map;
}
#endif

0 comments on commit 8a28d8a

Please sign in to comment.
You can’t perform that action at this time.