Skip to content

Commit

Permalink
Fix display of paper size after loading from Template. Fixes #6818
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Jan 10, 2013
1 parent cf0c3df commit 7ca3656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/composer/qgscomposition.cpp
Expand Up @@ -341,6 +341,7 @@ bool QgsComposition::readXML( const QDomElement& compositionElem, const QDomDocu
bool widthConversionOk, heightConversionOk;
mPageWidth = compositionElem.attribute( "paperWidth" ).toDouble( &widthConversionOk );
mPageHeight = compositionElem.attribute( "paperHeight" ).toDouble( &heightConversionOk );
emit paperSizeChanged();
int numPages = compositionElem.attribute( "numPages", "1" ).toInt();

if ( widthConversionOk && heightConversionOk )
Expand Down Expand Up @@ -435,7 +436,6 @@ bool QgsComposition::loadFromTemplate( const QDomDocument& doc, QMap<QString, QS
// read atlas parameters
QDomElement atlasElem = importDoc.documentElement().firstChildElement( "Atlas" );
atlasComposition().readXML( atlasElem, importDoc );

return true;
}

Expand Down

0 comments on commit 7ca3656

Please sign in to comment.