Skip to content

Commit

Permalink
When setting scale range, make sure to set min before max scale
Browse files Browse the repository at this point in the history
This ensures the limit on max scale imposed by previously set min
scale does not trim the new value.

Fixes #15463

(cherry picked from commit 55ffbf5)
  • Loading branch information
strk authored and jef-n committed May 26, 2017
1 parent e0cad1f commit 8ccb4c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsscalerangewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ double QgsScaleRangeWidget::maximumScaleDenom()

void QgsScaleRangeWidget::setScaleRange( double min, double max )
{
setMaximumScale( max );
setMinimumScale( min );
setMaximumScale( max );
}

void QgsScaleRangeWidget::emitRangeChanged()
Expand Down

0 comments on commit 8ccb4c4

Please sign in to comment.