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


Ignore:
Timestamp:
2014-08-30T02:26:47+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #10438 - give an error if addr:streetname of associatedStreet relation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/Addresses.java

    r7012 r7464  
    138138                        list.add(p);
    139139                    }
     140                    if (relationName != null && p.hasKey(ADDR_STREET) && !relationName.equals(p.get(ADDR_STREET))) {
     141                        if (wrongStreetNames.isEmpty()) {
     142                            wrongStreetNames.add(r);
     143                        }
     144                        wrongStreetNames.add(p);
     145                    }
    140146                } else if ("street".equals(role)) {
    141147                    if (p instanceof Way) {
Note: See TracChangeset for help on using the changeset viewer.