Skip to content

Commit 78ee9f7

Browse files
committedJul 21, 2017
fix locked ratio width adjustment in save as image/PDF
1 parent 00ac9f5 commit 78ee9f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/app/qgsmapsavedialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void QgsMapSaveDialog::updateOutputHeight( int height )
164164
double scale = ( double )width / mSize.width();
165165
double adjustment = ( ( mExtent.width() * scale ) - mExtent.width() ) / 2;
166166

167-
whileBlocking( mOutputWidthSpinBox )->setValue( height );
167+
whileBlocking( mOutputWidthSpinBox )->setValue( width );
168168
mSize.setWidth( width );
169169

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

0 commit comments

Comments
 (0)
Please sign in to comment.