Changeset 7200 in josm for trunk/src


Ignore:
Timestamp:
2014-05-31T20:31:02+02:00 (10 years ago)
Author:
bastiK
Message:

mapcss: use correct layer inside selector (for class conditions and expressions)

File:
1 edited

Legend:

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

    r7192 r7200  
    385385        for (MapCSSRule r : matchingRuleIndex.getRuleCandidates(osm)) {
    386386            env.clearSelectorMatchingInformation();
     387            env.layer = r.selector.getSubpart();
    387388            if (r.selector.matches(env)) { // as side effect env.parent will be set (if s is a child selector)
    388389                Selector s = r.selector;
Note: See TracChangeset for help on using the changeset viewer.