Ticket #17684: 17684-fix-java-code.patch

File 17684-fix-java-code.patch, 893 bytes (added by GerdP, 6 years ago)

let {0.tag} return the tag of the primitive, not the tag pattern of the selector

  • src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java

     
    605605                } else if ("value".equals(type)) {
    606606                    return tag.getValue();
    607607                } else if ("tag".equals(type)) {
     608                    // see #17684
     609                    if (p != null) {
     610                        String val = p.get(tag.getKey());
     611                        if (val != null)
     612                            return new Tag(tag.getKey(), val).toString();
     613                    }
    608614                    return tag.toString();
    609615                }
    610616            } catch (IndexOutOfBoundsException ignore) {