[QGIS Commit] r14910 - trunk/qgis/src/app/composer

svn_qgis at osgeo.org svn_qgis at osgeo.org
Tue Dec 14 11:13:42 EST 2010


Author: mhugent
Date: 2010-12-14 08:13:42 -0800 (Tue, 14 Dec 2010)
New Revision: 14910

Modified:
   trunk/qgis/src/app/composer/qgscomposer.cpp
Log:
Set view box for svg export explicitely (thanks to JD)

Modified: trunk/qgis/src/app/composer/qgscomposer.cpp
===================================================================
--- trunk/qgis/src/app/composer/qgscomposer.cpp	2010-12-14 15:22:57 UTC (rev 14909)
+++ trunk/qgis/src/app/composer/qgscomposer.cpp	2010-12-14 16:13:42 UTC (rev 14910)
@@ -818,6 +818,7 @@
   //height in pixel
   int height = ( int )( mComposition->paperHeight() * mComposition->printResolution() / 25.4 );
   generator.setSize( QSize( width, height ) );
+  generator.setViewBox( QRect( 0, 0, width, height ) );
   generator.setResolution( mComposition->printResolution() ); //because the rendering is done in mm, convert the dpi
 
   QPainter p( &generator );



More information about the QGIS-commit mailing list