Skip to content

Commit

Permalink
fix #1887
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11465 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Aug 21, 2009
1 parent 9225974 commit b51f5d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/composer/qgscomposition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit b51f5d9

Please sign in to comment.