Skip to content

Commit

Permalink
Fix atlas parameter loading when loading from a template composer
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Mercier committed Oct 8, 2012
1 parent 358c638 commit 8a28d8a
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/core/composer/qgscomposition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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.