Changeset 9465 in josm for trunk/src/org
- Timestamp:
- 2016-01-15T15:59:13+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/tagging/presets/items
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/Combo.java
r8863 r9465 39 39 lhm.put(def, new PresetListEntry(def)); 40 40 } 41 lhm.put("", new PresetListEntry("")); 41 if (!lhm.containsKey("")) { 42 lhm.put("", new PresetListEntry("")); 43 } 42 44 43 45 combo = new JosmComboBox<>(lhm.values().toArray(new PresetListEntry[0])); -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/ComboMultiSelect.java
r9360 r9465 201 201 public String getListDisplay() { 202 202 if (value.equals(DIFFERENT)) 203 return "<b>"+DIFFERENT.replaceAll("<", "<").replaceAll(">", ">")+"</b>"; 204 205 if (value.isEmpty()) 206 return " "; 203 return "<b>" + Utils.escapeReservedCharactersHTML(DIFFERENT) + "</b>"; 207 204 208 205 final StringBuilder res = new StringBuilder("<b>"); 209 res.append( getDisplayValue(true).replaceAll("<", "<").replaceAll(">", ">"))206 res.append(Utils.escapeReservedCharactersHTML(getDisplayValue(true))) 210 207 .append("</b>"); 211 208 if (getShortDescription(true) != null) {
Note:
See TracChangeset
for help on using the changeset viewer.