Skip to content

Commit 3a48287

Browse files
author
mhugent
committedDec 14, 2010
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
1 parent 60fda2a commit 3a48287

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/app/composer/qgscomposer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,7 @@ void QgsComposer::on_mActionExportAsSVG_triggered()
818818
//height in pixel
819819
int height = ( int )( mComposition->paperHeight() * mComposition->printResolution() / 25.4 );
820820
generator.setSize( QSize( width, height ) );
821+
generator.setViewBox( QRect( 0, 0, width, height ) );
821822
generator.setResolution( mComposition->printResolution() ); //because the rendering is done in mm, convert the dpi
822823

823824
QPainter p( &generator );

0 commit comments

Comments
 (0)
Please sign in to comment.