Changeset 3413 in josm


Ignore:
Timestamp:
2010-08-04T00:10:31+02:00 (14 years ago)
Author:
bastiK
Message:

applied #5266 (patch by Nakor) - Ask only for changed values when reversing a way

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java

    r3317 r3413  
    151151            }
    152152
    153             if (!key.equals(newKey) || !value.equals(newValue)) {
     153            boolean needsCorrection = !key.equals(newKey);
     154            if (way.get(newKey) != null && way.get(newKey).equals(newValue)) {
     155                needsCorrection = false;
     156            }
     157            if (!value.equals(newValue)) {
     158                needsCorrection = true;
     159            }
     160
     161            if (needsCorrection) {
    154162                tagCorrections.add(new TagCorrection(key, value, newKey, newValue));
    155163            }
Note: See TracChangeset for help on using the changeset viewer.