Changeset 3814 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2011-01-24T13:40:19+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/StyleSource.java
r3805 r3814 44 44 IconElemStyle style; 45 45 if ((style = icons.get("n" + key + "=" + val)) != null) { 46 if (icon == null || style.priority > icon.priority) { 46 if (icon == null || style.priority >= icon.priority) { 47 47 icon = style; 48 48 } 49 49 } 50 50 if ((style = icons.get("b" + key + "=" + OsmUtils.getNamedOsmBoolean(val))) != null) { 51 if (icon == null || style.priority > icon.priority) { 51 if (icon == null || style.priority >= icon.priority) { 52 52 icon = style; 53 53 } 54 54 } 55 55 if ((style = icons.get("x" + key)) != null) { 56 if (icon == null || style.priority > icon.priority) { 56 if (icon == null || style.priority >= icon.priority) { 57 57 icon = style; 58 58 } … … 60 60 } 61 61 for (IconElemStyle s : iconsList) { 62 if ((icon == null || s.priority > icon.priority) && s.check(primitive)) { 62 if ((icon == null || s.priority >= icon.priority) && s.check(primitive)) { 63 63 icon = s; 64 64 } … … 75 75 LineElemStyle styleLine; 76 76 String idx = "n" + key + "=" + val; 77 if ((styleArea = areas.get(idx)) != null && (area == null || styleArea.priority > area.priority) && (!noclosed || !styleArea.closed)) { 77 if ((styleArea = areas.get(idx)) != null && (area == null || styleArea.priority >= area.priority) && (!noclosed || !styleArea.closed)) { 78 78 area = styleArea; 79 79 } 80 if ((styleLine = lines.get(idx)) != null && (line == null || styleLine.priority > line.priority)) { 80 if ((styleLine = lines.get(idx)) != null && (line == null || styleLine.priority >= line.priority)) { 81 81 line = styleLine; 82 82 lineIdx = idx; … … 86 86 } 87 87 idx = "b" + key + "=" + OsmUtils.getNamedOsmBoolean(val); 88 if ((styleArea = areas.get(idx)) != null && (area == null || styleArea.priority > area.priority) && (!noclosed || !styleArea.closed)) { 88 if ((styleArea = areas.get(idx)) != null && (area == null || styleArea.priority >= area.priority) && (!noclosed || !styleArea.closed)) { 89 89 area = styleArea; 90 90 } 91 if ((styleLine = lines.get(idx)) != null && (line == null || styleLine.priority > line.priority)) { 91 if ((styleLine = lines.get(idx)) != null && (line == null || styleLine.priority >= line.priority)) { 92 92 line = styleLine; 93 93 lineIdx = idx; … … 97 97 } 98 98 idx = "x" + key; 99 if ((styleArea = areas.get(idx)) != null && (area == null || styleArea.priority > area.priority) && (!noclosed || !styleArea.closed)) { 99 if ((styleArea = areas.get(idx)) != null && (area == null || styleArea.priority >= area.priority) && (!noclosed || !styleArea.closed)) { 100 100 area = styleArea; 101 101 } 102 if ((styleLine = lines.get(idx)) != null && (line == null || styleLine.priority > line.priority)) { 102 if ((styleLine = lines.get(idx)) != null && (line == null || styleLine.priority >= line.priority)) { 103 103 line = styleLine; 104 104 lineIdx = idx; … … 109 109 } 110 110 for (AreaElemStyle s : areasList) { 111 if ((area == null || s.priority > area.priority) && (!noclosed || !s.closed) && s.check(primitive)) { 111 if ((area == null || s.priority >= area.priority) && (!noclosed || !s.closed) && s.check(primitive)) { 112 112 area = s; 113 113 } 114 114 } 115 115 for (LineElemStyle s : linesList) { 116 if ((line == null || s.priority > line.priority) && s.check(primitive)) { 116 if ((line == null || s.priority >= line.priority) && s.check(primitive)) { 117 117 line = s; 118 118 }
Note:
See TracChangeset
for help on using the changeset viewer.