Changeset 16525 in josm for trunk/src/org


Ignore:
Timestamp:
2020-05-31T16:25:09+02:00 (4 years ago)
Author:
simon04
Message:

see #8352 - PropertiesDialog: use non-localized color name

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  
    136136
    137137    protected Color getColor() {
    138         String colorString = String.valueOf(getSelectedItem());
     138        String colorString = String.valueOf(getSelectedValue());
    139139        return colorString.startsWith("#")
    140140                ? ColorHelper.html2color(colorString)
  • trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/ComboMultiSelect.java

    r16276 r16525  
    513513    }
    514514
    515     @Override
    516     public void addCommands(List<Tag> changedTags) {
     515    protected String getSelectedValue() {
    517516        Object obj = getSelectedItem();
    518517        String display = obj == null ? getDisplayIfNull() : obj.toString();
     
    533532            value = "";
    534533        }
    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();
    536540
    537541        // no change if same as before
Note: See TracChangeset for help on using the changeset viewer.