Changeset 8416 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2015-05-22T21:28:34+02:00 (9 years ago)
Author:
Don-vip
Message:

fix #11447 - revert or r8384 for StyleCache and GeoPropertyIndex

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/StyleCache.java

    r8385 r8416  
    1111import org.openstreetmap.josm.data.osm.Storage;
    1212import org.openstreetmap.josm.tools.Pair;
    13 import org.openstreetmap.josm.tools.Utils;
    1413
    1514/**
     
    165164            ++i;
    166165        }
    167         if (Utils.equalsEpsilon(bd.get(i), lower)) {
     166        if (bd.get(i) == lower) {
    168167            if (upper > bd.get(i+1))
    169168                throw new RangeViolatedError();
     
    171170                throw new AssertionError("the new range must be within a subrange that has no data");
    172171
    173             if (Utils.equalsEpsilon(bd.get(i+1), upper)) {
     172            if (bd.get(i+1) == upper) {
    174173                //  --|-------|--------|--
    175174                //   i-1      i       i+1
  • trunk/src/org/openstreetmap/josm/tools/GeoPropertyIndex.java

    r8384 r8416  
    164164        boolean isInside(LatLon ll) {
    165165            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)) &&
    168167                    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));
    171169        }
    172170
Note: See TracChangeset for help on using the changeset viewer.