- Timestamp:
- 2012-07-19T00:05:11+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Node.java
r5326 r5349 34 34 @Override 35 35 public final void setCoor(LatLon coor) { 36 if(coor != null){ 37 updateCoor(coor, null); 38 } 36 updateCoor(coor, null); 39 37 } 40 38 41 39 @Override 42 40 public final void setEastNorth(EastNorth eastNorth) { 43 if(eastNorth != null) { 44 updateCoor(null, eastNorth); 45 } 41 updateCoor(null, eastNorth); 46 42 } 47 43 … … 113 109 this.east = eastNorth.east(); 114 110 this.north = eastNorth.north(); 115 } else 116 throw new IllegalArgumentException(); 111 } else { 112 this.lat = Double.NaN; 113 this.lon = Double.NaN; 114 invalidateEastNorthCache(); 115 } 117 116 } 118 117
Note:
See TracChangeset
for help on using the changeset viewer.