Changeset 16691 in josm for trunk/src/org


Ignore:
Timestamp:
2020-06-21T09:54:54+02:00 (4 years ago)
Author:
simon04
Message:

see #16031 - Add ComboTest.testUseLastAsDefault

File:
1 edited

Legend:

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

    r16690 r16691  
    361361            // all items were unset (and so is default)
    362362            originalValue = getListEntry("");
    363             if (!presetInitiallyMatches && isUseLastAsDefault() && LAST_VALUES.containsKey(key)) {
     363            if (LAST_VALUES.containsKey(key) && isUseLastAsDefault() && (!presetInitiallyMatches || isForceUseLastAsDefault())) {
    364364                itemToSelect = getListEntry(LAST_VALUES.get(key));
    365365            } else {
Note: See TracChangeset for help on using the changeset viewer.