Ignore:
Timestamp:
2009-11-13T11:34:34+01:00 (15 years ago)
Author:
Gubaer
Message:

fixed #3908: Exception when updating a way
fixed a few I18n issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/DataSetMerger.java

    r2443 r2444  
    135135    }
    136136
    137     protected OsmPrimitive getMergeTarget(OsmPrimitive mergeSource) {
     137    protected OsmPrimitive getMergeTarget(OsmPrimitive mergeSource) throws IllegalStateException{
    138138        Long targetId = mergedMap.get(mergeSource.getUniqueId());
    139139        if (targetId == null)
    140             throw new RuntimeException(tr("Missing merge target for way with id {0}", mergeSource.getUniqueId()));
     140            return null;
    141141        return targetDataSet.getPrimitiveById(targetId, mergeSource.getType());
    142142    }
     
    306306            childrenToMerge.add(source.getUniqueId());
    307307        } else if (target.isModified() && ! source.isModified() && target.getVersion() == source.getVersion()) {
    308             // my is same as other but mine is modified
    309             // => keep mine
     308            // target is same as source but target is modified
     309            // => keep target
    310310        } else if (! target.hasEqualSemanticAttributes(source)) {
    311             // my is modified and is not semantically equal with other. Can't automatically
     311            // target is modified and is not semantically equal with source. Can't automatically
    312312            // resolve the differences
    313313            // =>  create a conflict
Note: See TracChangeset for help on using the changeset viewer.