Changeset 35402 in osm


Ignore:
Timestamp:
2020-03-29T16:47:49+02:00 (5 years ago)
Author:
gerdp
Message:

fix fix #1josm19000: reverter doesn't revert

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reverter/src/reverter/DataSetCommandMerger.java

    r35395 r35402  
    5353
    5454    private void addChangeCommandIfNotEquals(OsmPrimitive target, OsmPrimitive newTarget, boolean nominal) {
    55         if (target.isIncomplete() != newTarget.isIncomplete() || target.isDeleted() != newTarget.isDeleted()
    56                 || target.isVisible() != newTarget.isVisible()
    57                 || !getNonDiscardableTags(target).equals(getNonDiscardableTags(newTarget))) {
     55                if (!target.hasEqualSemanticAttributes(newTarget) || target.isDeleted() != newTarget.isDeleted()
     56                                || target.isVisible() != newTarget.isVisible()
     57                                || !getNonDiscardableTags(target).equals(getNonDiscardableTags(newTarget))) {
    5858            cmds.add(new ChangeCommand(target, newTarget));
    5959            if (nominal) {
Note: See TracChangeset for help on using the changeset viewer.