Changeset 263 in josm for src/org/openstreetmap/josm
- Timestamp:
- 2007-06-21T01:56:21+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/data/osm/visitor/MergeVisitor.java
r226 r263 229 229 230 230 private void fixSegment(Segment ls) { 231 if (mergedNodes.containsKey(ls.from)) 231 System.out.println("fix seg" +ls+ " mn="+mergedNodes.size()); 232 233 if (mergedNodes.containsKey(ls.from)) { 232 234 ls.from = mergedNodes.get(ls.from); 233 if (mergedNodes.containsKey(ls.to)) 235 System.out.println("fix from"); 236 } 237 if (mergedNodes.containsKey(ls.to)) { 234 238 ls.to = mergedNodes.get(ls.to); 239 System.out.println("fix to"); 240 } 235 241 } 236 242 … … 307 313 Date d1 = my.timestamp == null ? new Date(0) : my.timestamp; 308 314 Date d2 = other.timestamp == null ? new Date(0) : other.timestamp; 309 if (my.realEqual(other, false)) 315 if (my.realEqual(other, false)) { 316 if (merged != null) 317 merged.put(other, my); 310 318 return true; // no merge needed. 319 } 311 320 if (my.realEqual(other, true)) { 312 321 // they differ in modified/timestamp combination only. Auto-resolve it.
Note:
See TracChangeset
for help on using the changeset viewer.