Changeset 17919 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2021-06-02T22:03:39+02:00 (3 years ago)
Author:
simon04
Message:

fix #20952, see #20851 - Revert "Tagging presets: value_template="..." for <combo>"

This reverts commit r17877

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/ComboMultiSelect.java

    r17877 r17919  
    397397    public void addCommands(List<Tag> changedTags) {
    398398        String value = getSelectedValue();
     399
     400        // no change if same as before
     401        if (originalValue == null) {
     402            if (value.isEmpty())
     403                return;
     404        } else if (value.equals(originalValue.toString()))
     405            return;
     406
    399407        if (isUseLastAsDefault()) {
    400408            LAST_VALUES.put(key, value);
Note: See TracChangeset for help on using the changeset viewer.