- Timestamp:
- 2010-02-10T14:25:48+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionCache.java
r2946 r2960 147 147 if (item instanceof TaggingPreset.Check) { 148 148 TaggingPreset.Check ch = (TaggingPreset.Check) item; 149 if (ch.key == null) continue; 149 150 presetTagCache.put(ch.key, OsmUtils.falseval); 150 151 presetTagCache.put(ch.key, OsmUtils.trueval); 151 152 } else if (item instanceof TaggingPreset.Combo) { 152 153 TaggingPreset.Combo co = (TaggingPreset.Combo) item; 154 if (co.key == null || co.values == null) continue; 153 155 for (String value : co.values.split(",")) { 154 156 presetTagCache.put(co.key, value); … … 156 158 } else if (item instanceof TaggingPreset.Key) { 157 159 TaggingPreset.Key ky = (TaggingPreset.Key) item; 160 if (ky.key == null || ky.value == null) continue; 158 161 presetTagCache.put(ky.key, ky.value); 159 162 } else if (item instanceof TaggingPreset.Text) { 160 163 TaggingPreset.Text tt = (TaggingPreset.Text) item; 164 if (tt.key == null) continue; 161 165 presetTagCache.putVoid(tt.key); 162 166 if (tt.default_ != null && !tt.default_.equals("")) {
Note:
See TracChangeset
for help on using the changeset viewer.