Changeset 1499 in josm for trunk/src/org/openstreetmap/josm/data/osm/visitor/MergeVisitor.java
- Timestamp:
- 2009-03-18T16:13:41+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/MergeVisitor.java
r1169 r1499 235 235 } 236 236 if (my.realEqual(other, true)) { 237 Date myd = my. timestamp == null ? new Date(0) : my.getTimestamp();238 Date otherd = other. timestamp == null ? new Date(0) : other.getTimestamp();237 Date myd = my.getTimestamp(); 238 Date otherd = other.getTimestamp(); 239 239 240 240 // they differ in modified/timestamp combination only. Auto-resolve it. … … 242 242 if (myd.before(otherd)) { 243 243 my.modified = other.modified; 244 my. timestamp = other.timestamp;244 my.setTimestamp(other.getTimestamp()); 245 245 } 246 246 return true; // merge done. 247 247 } 248 248 if (my.id == other.id && my.id != 0) { 249 Date myd = my. timestamp == null ? new Date(0) : my.getTimestamp();250 Date otherd = other. timestamp == null ? new Date(0) : other.getTimestamp();249 Date myd = my.getTimestamp(); 250 Date otherd = other.getTimestamp(); 251 251 252 252 if (my.incomplete || other.incomplete) {
Note:
See TracChangeset
for help on using the changeset viewer.