Changeset 17401 in josm


Ignore:
Timestamp:
2020-12-11T18:17:48+01:00 (4 years ago)
Author:
GerdP
Message:

fix #20222: Relation editor: Changes in member order are lost when updates are applied

  • correct logic which decides what type of command is needed, regression from r17358
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/SavingAction.java

    r17358 r17401  
    9292        getMemberTableModel().applyToRelation(editedRelation);
    9393        List<Command> cmds = new ArrayList<>();
    94         if (originRelation.getKeys().equals(editedRelation.getKeys())) {
     94        if (!originRelation.getMembers().equals(editedRelation.getMembers())) {
    9595            cmds.add(new ChangeMembersCommand(originRelation, editedRelation.getMembers()));
    9696        }
Note: See TracChangeset for help on using the changeset viewer.