Ignore:
Timestamp:
03.02.2010 22:53:24 (2 years ago)
Author:
mjulius
Message:

bring PrimitiveData.getId() in line with OsmPrimitive.getId()
remove OsmReader.OsmPrimitiveData and use PrimitiveData instead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/PasteAction.java

    r2818 r2932  
    9292            copy.clearOsmId(); 
    9393            if (data instanceof NodeData) { 
    94                 newNodeIds.put(data.getId(), copy.getId()); 
     94                newNodeIds.put(data.getUniqueId(), copy.getUniqueId()); 
    9595            } else if (data instanceof WayData) { 
    96                 newWayIds.put(data.getId(), copy.getId()); 
     96                newWayIds.put(data.getUniqueId(), copy.getUniqueId()); 
    9797            } else if (data instanceof RelationData) { 
    98                 newRelationIds.put(data.getId(), copy.getId()); 
     98                newRelationIds.put(data.getUniqueId(), copy.getUniqueId()); 
    9999            } 
    100100            bufferCopy.add(copy); 
Note: See TracChangeset for help on using the changeset viewer.