Ignore:
Timestamp:
23.06.2009 22:03:37 (3 years ago)
Author:
Gubaer
Message:

new: MultiFetchServerObjectReader using APIs Multi Fetch method
update: now uses Multi Fetch to check for deleted primitives on the server
update: now uses Multi Fetch to update the selected primitives with the state from the server
fixed: cleaned up merging in MergeVisitor
new: conflict resolution dialog; now resolves conflicts due to different visibilities
new: replacement for realEqual() on OsmPrimitive and derived classes; realEqual now @deprecated
fixed: cleaning up OsmReader
fixed: progress indication in OsmApi

File:
1 edited

Legend:

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

    r1654 r1690  
    6666 
    6767        if (decision.equals(MergeDecisionType.KEEP_MINE)) { 
    68             // do nothing 
     68            if (my.deleted) { 
     69                // because my was involved in a conflict it my still be referred 
     70                // to from a way or a relation. Fix this now. 
     71                // 
     72                Main.main.editLayer().data.unlinkReferencesToPrimitive(my); 
     73            } 
    6974        } else if (decision.equals(MergeDecisionType.KEEP_THEIR)) { 
    70             my.deleted = their.deleted; 
     75            if (their.deleted) { 
     76                Main.main.editLayer().data.unlinkReferencesToPrimitive(my); 
     77                my.delete(true); 
     78            } else { 
     79                my.deleted = their.deleted; 
     80            } 
    7181        } else 
    7282            // should not happen 
Note: See TracChangeset for help on using the changeset viewer.