Changeset 9122 in josm for trunk/src/org


Ignore:
Timestamp:
2015-12-14T23:02:04+01:00 (4 years ago)
Author:
bastiK
Message:

fix possible division by 0 (see #12186)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java

    r9118 r9122  
    423423            double d_en = 100 * scale;
    424424            double scaleMin = 0.01 * d_en / d_m / 100;
    425             if (newScale < scaleMin) {
     425            if (!Double.isInfinite(scaleMin) && newScale < scaleMin) {
    426426                newScale = scaleMin;
    427427            }
Note: See TracChangeset for help on using the changeset viewer.