Ignore:
Timestamp:
2009-12-11T22:52:54+01:00 (14 years ago)
Author:
mjulius
Message:

Fixes #4083 - exception when copying relation with incomplete node
Fixes #4141 - relax conflict detection for coordinates; API only returns 7 decimals

File:
1 edited

Legend:

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

    r2578 r2612  
    136136        NodeData data = new NodeData();
    137137        saveCommonAttributes(data);
    138         data.setCoor(getCoor());
     138        if (!isIncomplete()) {
     139            data.setCoor(getCoor());
     140        }
    139141        return data;
    140142    }
     
    155157            return true;
    156158        else if (coor != null && n.coor != null)
    157             return coor.equals(n.coor);
     159            return coor.equalsEpsilon(n.coor);
    158160        else
    159161            return false;
Note: See TracChangeset for help on using the changeset viewer.