Skip to content

Commit

Permalink
fix locked ratio width adjustment in save as image/PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jul 21, 2017
1 parent 00ac9f5 commit 78ee9f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsmapsavedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 78ee9f7

Please sign in to comment.