Ignore:
Timestamp:
2014-01-10T22:55:29+01:00 (10 years ago)
Author:
Don-vip
Message:

see #9565 - don't consider infinite coordinates as valid

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/coor/EastNorth.java

    r6380 r6669  
    9191
    9292    /**
    93      * Replies true if east and north are different from Double.NaN
     93     * Replies true if east and north are different from Double.NaN and not inifinite
    9494     *
    95      * @return true if east and north are different from Double.NaN
     95     * @return true if east and north are different from Double.NaN and not inifinite
    9696     */
    9797    public boolean isValid() {
    98         return !java.lang.Double.isNaN(x) && !java.lang.Double.isNaN(y);
     98        return !Double.isNaN(x) && !Double.isNaN(y) && !Double.isInfinite(x) && !Double.isInfinite(y);
    9999    }
    100100
Note: See TracChangeset for help on using the changeset viewer.