Changeset 8179 in josm for trunk


Ignore:
Timestamp:
2015-04-09T20:25:33+02:00 (5 years ago)
Author:
stoecker
Message:

see #10329 - also drop old value for FixDataTag, when new value matches

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/upload/FixDataHook.java

    r8178 r8179  
    166166        @Override
    167167        public boolean fixKeys(Map<String, String> keys, OsmPrimitive osm) {
    168             if(oldValue.equals(keys.get(oldKey)) && (newKey.equals(oldKey) || !keys.containsKey(newKey))) {
     168            if(oldValue.equals(keys.get(oldKey)) && (newKey.equals(oldKey)
     169            || !keys.containsKey(newKey) || keys.get(newKey).equals(newValue))) {
    169170                keys.put(newKey, newValue);
    170171                if(!newKey.equals(oldKey))
Note: See TracChangeset for help on using the changeset viewer.