Skip to content

Commit

Permalink
Fix for problem where paper settings in composer have not been restor…
Browse files Browse the repository at this point in the history
…ed properly

git-svn-id: http://svn.osgeo.org/qgis/trunk@11960 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Nov 7, 2009
1 parent 4465607 commit bd9186b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app/composer/qgscomposer.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit bd9186b

Please sign in to comment.