Ignore:
Timestamp:
2011-03-30T22:25:20+02:00 (15 years ago)
Author:
bastiK
Message:

applied #6150 - mapcss - improve parent_tag (based on patch by Gubaer)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java

    r3987 r4011  
    140140        for (MapCSSRule r : rules) {
    141141            for (Selector s : r.selectors) {
    142                 if (s.applies(env)) {
     142                env.clearMatchingReferrers();
     143                if (s.matches(env)) { // as side effect env.matchingReferrers will be set (if s is a child selector)
    143144                    if (s.getRange().contains(scale)) {
    144145                        mc.range = Range.cut(mc.range, s.getRange());
Note: See TracChangeset for help on using the changeset viewer.