Ignore:
Timestamp:
2009-12-28T00:14:33+01:00 (14 years ago)
Author:
Gubaer
Message:

Partial commit due to issue described in #4137
Breaks the build

File:
1 edited

Legend:

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

    r2512 r2686  
    6969            }
    7070        }
     71        if (!LatLon.isValidLat(values[0]))
     72            throw new IllegalArgumentException(tr("Illegal latitude value ''{0}''", values[0]));
     73        if (!LatLon.isValidLon(values[1]))
     74            throw new IllegalArgumentException(tr("Illegal longitude value ''{0}''", values[1]));
     75        if (!LatLon.isValidLat(values[2]))
     76            throw new IllegalArgumentException(tr("Illegal latitude value ''{0}''", values[2]));
     77        if (!LatLon.isValidLon(values[3]))
     78            throw new IllegalArgumentException(tr("Illegal latitude value ''{0}''", values[3]));
     79
    7180        this.min = new LatLon(values[0], values[1]);
    7281        this.max = new LatLon(values[2], values[3]);
Note: See TracChangeset for help on using the changeset viewer.