Skip to content
Permalink
Browse files

fix locked ratio width adjustment in save as image/PDF

  • Loading branch information
nirvn committed Jul 21, 2017
1 parent 00ac9f5 commit 78ee9f7e7d625078cf7311e2241e3ab0d137a2c8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsmapsavedialog.cpp
@@ -164,7 +164,7 @@ void QgsMapSaveDialog::updateOutputHeight( int height )
double scale = ( double )width / mSize.width();
double adjustment = ( ( mExtent.width() * scale ) - mExtent.width() ) / 2;

whileBlocking( mOutputWidthSpinBox )->setValue( height );
whileBlocking( mOutputWidthSpinBox )->setValue( width );
mSize.setWidth( width );

mExtent.setXMinimum( mExtent.xMinimum() - adjustment );

0 comments on commit 78ee9f7

Please sign in to comment.
You can’t perform that action at this time.