Changeset 2444 in josm for trunk/src/org/openstreetmap/josm/data/osm/DataSetMerger.java
- Timestamp:
- 2009-11-13T11:34:34+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/DataSetMerger.java
r2443 r2444 135 135 } 136 136 137 protected OsmPrimitive getMergeTarget(OsmPrimitive mergeSource) {137 protected OsmPrimitive getMergeTarget(OsmPrimitive mergeSource) throws IllegalStateException{ 138 138 Long targetId = mergedMap.get(mergeSource.getUniqueId()); 139 139 if (targetId == null) 140 throw new RuntimeException(tr("Missing merge target for way with id {0}", mergeSource.getUniqueId()));140 return null; 141 141 return targetDataSet.getPrimitiveById(targetId, mergeSource.getType()); 142 142 } … … 306 306 childrenToMerge.add(source.getUniqueId()); 307 307 } else if (target.isModified() && ! source.isModified() && target.getVersion() == source.getVersion()) { 308 // my is same as other but mineis modified309 // => keep mine308 // target is same as source but target is modified 309 // => keep target 310 310 } else if (! target.hasEqualSemanticAttributes(source)) { 311 // my is modified and is not semantically equal with other. Can't automatically311 // target is modified and is not semantically equal with source. Can't automatically 312 312 // resolve the differences 313 313 // => create a conflict
Note:
See TracChangeset
for help on using the changeset viewer.