[QGIS Commit] r11465 - trunk/qgis/src/core/composer
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Fri Aug 21 11:23:47 EDT 2009
Author: jef
Date: 2009-08-21 11:23:47 -0400 (Fri, 21 Aug 2009)
New Revision: 11465
Modified:
trunk/qgis/src/core/composer/qgscomposition.cpp
Log:
fix #1887
Modified: trunk/qgis/src/core/composer/qgscomposition.cpp
===================================================================
--- trunk/qgis/src/core/composer/qgscomposition.cpp 2009-08-21 13:32:42 UTC (rev 11464)
+++ trunk/qgis/src/core/composer/qgscomposition.cpp 2009-08-21 15:23:47 UTC (rev 11465)
@@ -186,6 +186,8 @@
compositionElem.setAttribute( "snapGridOffsetX", mSnapGridOffsetX );
compositionElem.setAttribute( "snapGridOffsetY", mSnapGridOffsetY );
+ compositionElem.setAttribute( "printResolution", mPrintResolution );
+
composerElem.appendChild( compositionElem );
return true;
@@ -225,6 +227,8 @@
mSnapGridOffsetX = compositionElem.attribute( "snapGridOffsetX" ).toDouble();
mSnapGridOffsetY = compositionElem.attribute( "snapGridOffsetY" ).toDouble();
+ mPrintResolution = compositionElem.attribute( "printResolution", "300" ).toInt();
+
if ( mPaperItem )
{
mPaperItem->update();
More information about the QGIS-commit
mailing list