Changeset 8846 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/xml/XmlStyleSource.java
- Timestamp:
- 2015-10-10T01:40:42+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/xml/XmlStyleSource.java
r8510 r8846 162 162 String val = primitive.get(key); 163 163 IconPrototype p; 164 if ((p = icons.get( "n" + key + "="+ val)) != null) {164 if ((p = icons.get('n' + key + '=' + val)) != null) { 165 165 icon = update(icon, p, scale, mc); 166 166 } 167 if ((p = icons.get( "b" + key + "="+ OsmUtils.getNamedOsmBoolean(val))) != null) {167 if ((p = icons.get('b' + key + '=' + OsmUtils.getNamedOsmBoolean(val))) != null) { 168 168 icon = update(icon, p, scale, mc); 169 169 } 170 if ((p = icons.get( "x"+ key)) != null) {170 if ((p = icons.get('x' + key)) != null) { 171 171 icon = update(icon, p, scale, mc); 172 172 } … … 194 194 LinePrototype styleLine; 195 195 LinemodPrototype styleLinemod; 196 String idx = "n" + key + "="+ val;196 String idx = 'n' + key + '=' + val; 197 197 if ((styleArea = areas.get(idx)) != null && (closed || !styleArea.closed) && !isNotArea) { 198 198 p.area = update(p.area, styleArea, scale, mc); … … 209 209 } 210 210 } 211 idx = "b" + key + "="+ OsmUtils.getNamedOsmBoolean(val);211 idx = 'b' + key + '=' + OsmUtils.getNamedOsmBoolean(val); 212 212 if ((styleArea = areas.get(idx)) != null && (closed || !styleArea.closed) && !isNotArea) { 213 213 p.area = update(p.area, styleArea, scale, mc); … … 224 224 } 225 225 } 226 idx = "x"+ key;226 idx = 'x' + key; 227 227 if ((styleArea = areas.get(idx)) != null && (closed || !styleArea.closed) && !isNotArea) { 228 228 p.area = update(p.area, styleArea, scale, mc);
Note:
See TracChangeset
for help on using the changeset viewer.