Changeset 1747 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2009-07-08T15:26:12+02:00 (17 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 2 edited
-
coor/CachedLatLon.java (modified) (1 diff)
-
osm/Node.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/coor/CachedLatLon.java
r1728 r1747 16 16 super(coor.lat(), coor.lon()); 17 17 proj = null; 18 } 19 20 public CachedLatLon(EastNorth eastNorth) { 21 super(Main.proj.eastNorth2latlon(eastNorth)); 22 proj = Main.proj; 23 this.eastNorth = eastNorth; 18 24 } 19 25 -
trunk/src/org/openstreetmap/josm/data/osm/Node.java
r1731 r1747 37 37 38 38 public final void setEastNorth(EastNorth eastNorth) { 39 coor.setEastNorth(eastNorth); 39 if(eastNorth != null) 40 { 41 if(coor != null) 42 coor.setEastNorth(eastNorth); 43 else 44 coor = new CachedLatLon(eastNorth); 45 } 40 46 } 41 47 42 48 public final EastNorth getEastNorth() { 43 return coor.getEastNorth(); 49 return coor != null ? coor.getEastNorth() : null; 44 50 } 45 51
Note:
See TracChangeset
for help on using the changeset viewer.
