Skip to content
Permalink
Browse files
Fix display of paper size after loading from Template. Fixes #6818
  • Loading branch information
mhugent committed Jan 10, 2013
1 parent cf0c3df commit 7ca36561872086529e03b86ffac68fb0f8c6cf61
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/composer/qgscomposition.cpp
@@ -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 )
@@ -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;
}

0 comments on commit 7ca3656

Please sign in to comment.