Ignore:
Timestamp:
2009-06-06T14:30:21+02:00 (16 years ago)
Author:
stoecker
Message:

little bit more refactoring of coordinate access - patch by jttt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/conflict/PositionConflict.java

    r1636 r1640  
    1010
    1111    @Override public boolean hasConflict(OsmPrimitive key, OsmPrimitive value) {
    12         return key instanceof Node && !((Node)key).coor.equals(((Node)value).coor);
     12        return key instanceof Node && !((Node)key).getCoor().equals(((Node)value).getCoor());
    1313    }
    1414
    1515    @Override protected String str(OsmPrimitive osm) {
    16         return osm instanceof Node ? ((Node)osm).coor.lat()+", "+((Node)osm).coor.lon() : null;
     16        return osm instanceof Node ? ((Node)osm).getCoor().lat()+", "+((Node)osm).getCoor().lon() : null;
    1717    }
    1818
     
    2323    @Override public void apply(OsmPrimitive target, OsmPrimitive other) {
    2424        if (target instanceof Node) {
    25             ((Node)target).setEastNorth(((Node)other).eastNorth);
     25            ((Node)target).setEastNorth(((Node)other).getEastNorth());
    2626            int newversion = Math.max(target.version, other.version);
    2727            // set version on "other" as well in case user decides to keep local
Note: See TracChangeset for help on using the changeset viewer.