Ignore:
Timestamp:
2009-10-24T07:30:45+02:00 (14 years ago)
Author:
Gubaer
Message:

fixed #3765: Unable to resolve conflict
Improved warning message for conflicting relation versions and added help page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/VersionConflictResolveCommand.java

    r2070 r2301  
    5555    public boolean executeCommand() {
    5656        super.executeCommand();
    57         conflict.getMy().setOsmId(
    58                 conflict.getMy().getId(),
    59                 (int)Math.max(conflict.getMy().getVersion(), conflict.getTheir().getVersion())
    60         );
     57        if (!conflict.getMy().isNew()) {
     58            conflict.getMy().setOsmId(
     59                    conflict.getMy().getId(),
     60                    (int)Math.max(conflict.getMy().getVersion(), conflict.getTheir().getVersion())
     61            );
     62        }
    6163        getLayer().getConflicts().remove(conflict);
    6264        rememberConflict(conflict);
Note: See TracChangeset for help on using the changeset viewer.