Changeset 5569 in josm


Ignore:
Timestamp:
2012-11-04T15:08:27+01:00 (12 years ago)
Author:
Don-vip
Message:

fix #7405 - TIGER tags sometimes changed unnecessarily when combined

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/TigerUtils.java

    r1169 r5569  
    3535        TreeSet<Object> resultSet = new TreeSet<Object>();
    3636        for (String value: values) {
    37             for (String part: value.split(":")) {
     37            String[] parts = value.split(":");
     38            for (String part: parts) {
    3839               resultSet.add(tagObj(part));
     40            }
     41            // Do not produce useless changeset noise if a single value is used and does not contain redundant splitted parts (fix #7405)
     42            if (values.size() == 1 && resultSet.size() == parts.length) {
     43                return value;
    3944            }
    4045        }
Note: See TracChangeset for help on using the changeset viewer.