Changeset 15949 in josm


Ignore:
Timestamp:
2020-02-27T21:01:23+01:00 (3 months ago)
Author:
simon04
Message:

see #18749, see #16183 - removeAreaStylePseudoClass not for validator MapCSS files

File:
1 edited

Legend:

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

    r15935 r15949  
    431431            canvasRules.clear();
    432432            // remove "areaStyle" pseudo classes intended only for validator (causes StackOverflowError otherwise), see #16183
    433             removeAreaStylePseudoClass = true;
     433            removeAreaStylePseudoClass = url == null || !url.contains("validator"); // resource://data/validator/ or xxx.validator.mapcss
    434434            try (InputStream in = getSourceInputStream()) {
    435435                try (Reader reader = new BufferedReader(UTFInputStreamReader.create(in))) {
Note: See TracChangeset for help on using the changeset viewer.