Ignore:
Timestamp:
2014-01-13T18:58:46+01:00 (10 years ago)
Author:
simon04
Message:

fix #9570 - MapCSS validator: make {0.tag} work for child/parent/spatial selectors

File:
1 edited

Legend:

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

    r6677 r6681  
    259259         */
    260260        static String insertArguments(Selector matchingSelector, String s) {
    261             if (!(matchingSelector instanceof Selector.GeneralSelector) || s == null) {
     261            if (s != null && matchingSelector instanceof Selector.ChildOrParentSelector) {
     262                return  insertArguments(((Selector.ChildOrParentSelector)matchingSelector).right, s);
     263            } else if (s == null || !(matchingSelector instanceof GeneralSelector)) {
    262264                return s;
    263265            }
Note: See TracChangeset for help on using the changeset viewer.