Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Set view box for svg export explicitely (thanks to JD)
git-svn-id: http://svn.osgeo.org/qgis/trunk@14910 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Dec 14, 2010
1 parent 60fda2a commit 3a48287
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/composer/qgscomposer.cpp
Expand Up @@ -818,6 +818,7 @@ void QgsComposer::on_mActionExportAsSVG_triggered()
//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 );
Expand Down

0 comments on commit 3a48287

Please sign in to comment.