Changeset 6736 in josm for trunk/src


Ignore:
Timestamp:
2014-01-19T17:46:33+01:00 (11 years ago)
Author:
simon04
Message:

fix #8568 - MapCSS rule applied several times if several selectors applies

File:
1 edited

Legend:

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

    r6670 r6736  
    174174    public void apply(MultiCascade mc, OsmPrimitive osm, double scale, OsmPrimitive multipolyOuterWay, boolean pretendWayIsClosed) {
    175175        Environment env = new Environment(osm, mc, null, this);
    176         for (MapCSSRule r : rules) {
     176        RULE: for (MapCSSRule r : rules) {
    177177            for (Selector s : r.selectors) {
    178178                env.clearSelectorMatchingInformation();
     
    200200                    env.layer = sub;
    201201                    r.execute(env);
     202                    continue RULE;
    202203                }
    203204            }
Note: See TracChangeset for help on using the changeset viewer.