Changeset 8416 in josm for trunk/src/org
- Timestamp:
- 2015-05-22T21:28:34+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/StyleCache.java
r8385 r8416 11 11 import org.openstreetmap.josm.data.osm.Storage; 12 12 import org.openstreetmap.josm.tools.Pair; 13 import org.openstreetmap.josm.tools.Utils;14 13 15 14 /** … … 165 164 ++i; 166 165 } 167 if ( Utils.equalsEpsilon(bd.get(i), lower)) {166 if (bd.get(i) == lower) { 168 167 if (upper > bd.get(i+1)) 169 168 throw new RangeViolatedError(); … … 171 170 throw new AssertionError("the new range must be within a subrange that has no data"); 172 171 173 if ( Utils.equalsEpsilon(bd.get(i+1), upper)) {172 if (bd.get(i+1) == upper) { 174 173 // --|-------|--------|-- 175 174 // i-1 i i+1 -
trunk/src/org/openstreetmap/josm/tools/GeoPropertyIndex.java
r8384 r8416 164 164 boolean isInside(LatLon ll) { 165 165 return bbox.getTopLeftLon() <= ll.lon() && 166 (ll.lon() < bbox.getBottomRightLon() || 167 (Utils.equalsEpsilon(ll.lon(), 180.0) && Utils.equalsEpsilon(bbox.getBottomRightLon(), 180.0))) && 166 (ll.lon() < bbox.getBottomRightLon() || (ll.lon() == 180.0 && bbox.getBottomRightLon() == 180.0)) && 168 167 bbox.getBottomRightLat() <= ll.lat() && 169 (ll.lat() < bbox.getTopLeftLat() || 170 (Utils.equalsEpsilon(ll.lat(), 90.0) && Utils.equalsEpsilon(bbox.getTopLeftLat(), 90.0))); 168 (ll.lat() < bbox.getTopLeftLat() || (ll.lat() == 90.0 && bbox.getTopLeftLat() == 90.0)); 171 169 } 172 170
Note:
See TracChangeset
for help on using the changeset viewer.