Ignore:
Timestamp:
2017-02-25T03:14:20+01:00 (2 years ago)
Author:
Don-vip
Message:

fix #14402 - add blacklist for leisure area values to avoid false positives - improve globally the detection of keys/tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java

    r11553 r11608  
    605605        public boolean hasTag(String key) {
    606606            HistoryOsmPrimitive primitive = getPointInTime(pointInTimeType);
    607             if (primitive == null)
    608                 return false;
    609             return primitive.hasTag(key);
     607            return primitive != null && primitive.hasKey(key);
    610608        }
    611609
     
    620618            PointInTimeType opposite = pointInTimeType.opposite();
    621619            HistoryOsmPrimitive primitive = getPointInTime(opposite);
    622             if (primitive == null)
    623                 return false;
    624             return primitive.hasTag(key);
     620            return primitive != null && primitive.hasKey(key);
    625621        }
    626622
     
    636632            String value = getValue(key);
    637633            String oppositeValue = getOppositeValue(key);
    638             if (value == null || oppositeValue == null)
    639                 return false;
    640             return value.equals(oppositeValue);
     634            return value != null && value.equals(oppositeValue);
    641635        }
    642636
Note: See TracChangeset for help on using the changeset viewer.