Skip to content
Permalink
Browse files

fix #1887

git-svn-id: http://svn.osgeo.org/qgis/trunk@11465 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Aug 21, 2009
1 parent 793b091 commit 54af16d55b38777e675fc2f282a7382d41ef3346
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/composer/qgscomposition.cpp
@@ -186,6 +186,8 @@ bool QgsComposition::writeXML( QDomElement& composerElem, QDomDocument& doc )
compositionElem.setAttribute( "snapGridOffsetX", mSnapGridOffsetX );
compositionElem.setAttribute( "snapGridOffsetY", mSnapGridOffsetY );

compositionElem.setAttribute( "printResolution", mPrintResolution );

composerElem.appendChild( compositionElem );

return true;
@@ -225,6 +227,8 @@ bool QgsComposition::readXML( const QDomElement& compositionElem, const QDomDocu
mSnapGridOffsetX = compositionElem.attribute( "snapGridOffsetX" ).toDouble();
mSnapGridOffsetY = compositionElem.attribute( "snapGridOffsetY" ).toDouble();

mPrintResolution = compositionElem.attribute( "printResolution", "300" ).toInt();

if ( mPaperItem )
{
mPaperItem->update();

0 comments on commit 54af16d

Please sign in to comment.
You can’t perform that action at this time.