Ticket #18929: 18929.patch

File 18929.patch, 884 bytes (added by GerdP, 3 months ago)
  • src/reverter/DataSetCommandMerger.java

     
    4949    }
    5050
    5151    private void addChangeCommandIfNotEquals(OsmPrimitive target, OsmPrimitive newTarget, boolean nominal) {
    52         if (!target.hasEqualSemanticAttributes(newTarget) || target.isDeleted() != newTarget.isDeleted() || target.isVisible() != newTarget.isVisible()) {
     52                if (!target.getKeys().equals(newTarget.getKeys()) || !target.isIncomplete() != newTarget.isIncomplete()
     53                                || target.isDeleted() != newTarget.isDeleted() || target.isVisible() != newTarget.isVisible()) {
    5354            cmds.add(new ChangeCommand(target, newTarget));
    5455            if (nominal) {
    5556                nominalRevertedPrimitives.add(target);