Changeset 14353 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2018-10-22T00:07:37+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/Range.java
r12378 r14353 25 25 */ 26 26 public Range(double lower, double upper) { 27 if (lower < 0 || lower >= upper )27 if (lower < 0 || lower >= upper || Double.isNaN(lower) || Double.isNaN(upper)) { 28 28 throw new IllegalArgumentException("Invalid range: "+lower+'-'+upper); 29 } 29 30 this.lower = lower; 30 31 this.upper = upper;
Note:
See TracChangeset
for help on using the changeset viewer.