- Timestamp:
- 2020-05-31T16:25:09+02:00 (4 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
r16319 r16525 136 136 137 137 protected Color getColor() { 138 String colorString = String.valueOf(getSelected Item());138 String colorString = String.valueOf(getSelectedValue()); 139 139 return colorString.startsWith("#") 140 140 ? ColorHelper.html2color(colorString) -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/ComboMultiSelect.java
r16276 r16525 513 513 } 514 514 515 @Override 516 public void addCommands(List<Tag> changedTags) { 515 protected String getSelectedValue() { 517 516 Object obj = getSelectedItem(); 518 517 String display = obj == null ? getDisplayIfNull() : obj.toString(); … … 533 532 value = ""; 534 533 } 535 value = Utils.removeWhiteSpaces(value); 534 return Utils.removeWhiteSpaces(value); 535 } 536 537 @Override 538 public void addCommands(List<Tag> changedTags) { 539 String value = getSelectedValue(); 536 540 537 541 // no change if same as before
Note:
See TracChangeset
for help on using the changeset viewer.