Fix for problem where paper settings in composer have not been restored properly

git-svn-id: http://svn.osgeo.org/qgis/trunk@11960 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
mhugent 2009-11-07 16:50:40 +00:00
parent 4465607993
commit bd9186bdbf

View File

@ -1079,8 +1079,14 @@ void QgsComposer::readXML( const QDomElement& composerElem, const QDomDocument&
mView = new QgsComposerView( mViewFrame );
connectSlots();
//read composition settings
mComposition = new QgsComposition( mQgis->mapCanvas()->mapRenderer() );
mComposition->readXML( composerElem, doc );
QDomNodeList compositionNodeList = composerElem.elementsByTagName( "Composition" );
if ( compositionNodeList.size() > 0 )
{
QDomElement compositionElem = compositionNodeList.at( 0 ).toElement();
mComposition->readXML( compositionElem, doc );
}
QGridLayout *l = new QGridLayout( mViewFrame );
l->setMargin( 0 );