Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fix locked ratio width adjustment in save as image/PDF
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+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 ); |
|
|