Skip to content
Permalink
Browse files

fix #1887

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11465 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Aug 21, 2009
1 parent 9225974 commit b51f5d95aafcf95c002d69a2441c86606865c42a
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 b51f5d9

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