- Timestamp:
- 2014-05-08T00:01:11+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java
r7064 r7074 52 52 public final List<MapCSSRule> relationRules = new ArrayList<>(); 53 53 public final List<MapCSSRule> multipolygonRules = new ArrayList<>(); 54 public final List<MapCSSRule> canvasRules = new ArrayList<>(); 54 55 55 56 private Color backgroundColorOverride; … … 86 87 relationRules.clear(); 87 88 multipolygonRules.clear(); 89 canvasRules.clear(); 88 90 try (InputStream in = getSourceInputStream()) { 89 91 try { … … 144 146 multipolygonRules.add(optRule); 145 147 break; 148 case "canvas": 149 canvasRules.add(r); 146 150 } 147 151 } … … 235 239 if (((Relation) osm).isMultipolygon()) { 236 240 matchingRules = multipolygonRules; 241 } else if (osm.hasKey("#canvas")) { 242 matchingRules = canvasRules; 237 243 } else { 238 244 matchingRules = relationRules;
Note:
See TracChangeset
for help on using the changeset viewer.