Changeset 5144 in josm for trunk/src/org
- Timestamp:
- 2012-03-31T19:10:28+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/xml/XmlStyleSource.java
r3967 r5144 166 166 String lineIdx = null; 167 167 HashMap<String, LinemodPrototype> overlayMap = new HashMap<String, LinemodPrototype>(); 168 boolean isNotArea = OsmUtils.isFalse(primitive.get("area")); 168 169 for (String key : primitive.keySet()) { 169 170 String val = primitive.get(key); … … 172 173 LinemodPrototype styleLinemod; 173 174 String idx = "n" + key + "=" + val; 174 if ((styleArea = areas.get(idx)) != null && (closed || !styleArea.closed) ) {175 if ((styleArea = areas.get(idx)) != null && (closed || !styleArea.closed) && !isNotArea) { 175 176 p.area = update(p.area, styleArea, scale, mc); 176 177 } … … 187 188 } 188 189 idx = "b" + key + "=" + OsmUtils.getNamedOsmBoolean(val); 189 if ((styleArea = areas.get(idx)) != null && (closed || !styleArea.closed) ) {190 if ((styleArea = areas.get(idx)) != null && (closed || !styleArea.closed) && !isNotArea) { 190 191 p.area = update(p.area, styleArea, scale, mc); 191 192 } … … 202 203 } 203 204 idx = "x" + key; 204 if ((styleArea = areas.get(idx)) != null && (closed || !styleArea.closed) ) {205 if ((styleArea = areas.get(idx)) != null && (closed || !styleArea.closed) && !isNotArea) { 205 206 p.area = update(p.area, styleArea, scale, mc); 206 207 } … … 218 219 } 219 220 for (AreaPrototype s : areasList) { 220 if ((closed || !s.closed) && s.check(primitive)) {221 if ((closed || !s.closed) && !isNotArea && s.check(primitive)) { 221 222 p.area = update(p.area, s, scale, mc); 222 223 }
Note:
See TracChangeset
for help on using the changeset viewer.