Changeset 8384 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/StyleCache.java
- Timestamp:
- 2015-05-17T15:52:24+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/StyleCache.java
r8342 r8384 11 11 import org.openstreetmap.josm.data.osm.Storage; 12 12 import org.openstreetmap.josm.tools.Pair; 13 import org.openstreetmap.josm.tools.Utils; 13 14 14 15 /** … … 164 165 ++i; 165 166 } 166 if (bd.get(i) == lower) {167 if (Utils.equalsEpsilon(bd.get(i), lower)) { 167 168 if (upper > bd.get(i+1)) 168 169 throw new RangeViolatedError(); … … 170 171 throw new AssertionError("the new range must be within a subrange that has no data"); 171 172 172 if (bd.get(i+1) == upper) {173 if (Utils.equalsEpsilon(bd.get(i+1), upper)) { 173 174 // --|-------|--------|-- 174 175 // i-1 i i+1 … … 212 213 if (bd.size() != data.size() + 1) throw new AssertionError(); 213 214 if (bd.get(0) != 0) throw new AssertionError(); 214 if (bd.get(bd.size() - 1) !=Double.POSITIVE_INFINITY) throw new AssertionError();215 if (!Utils.equalsEpsilon(bd.get(bd.size() - 1), Double.POSITIVE_INFINITY)) throw new AssertionError(); 215 216 for (int i=0; i<data.size() - 1; ++i) { 216 217 if (bd.get(i) >= bd.get(i + 1)) throw new AssertionError();
Note:
See TracChangeset
for help on using the changeset viewer.
