Changeset 14120 in josm for trunk/src/org/openstreetmap/josm/data/osm/Node.java
- Timestamp:
- 2018-08-11T17:29:48+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Node.java
r13669 r14120 10 10 import java.util.function.Predicate; 11 11 12 import org.openstreetmap.josm.Main;13 12 import org.openstreetmap.josm.data.coor.EastNorth; 14 13 import org.openstreetmap.josm.data.coor.LatLon; … … 16 15 import org.openstreetmap.josm.data.osm.visitor.PrimitiveVisitor; 17 16 import org.openstreetmap.josm.data.projection.Projecting; 17 import org.openstreetmap.josm.data.projection.ProjectionRegistry; 18 18 import org.openstreetmap.josm.tools.CheckParameterUtil; 19 19 import org.openstreetmap.josm.tools.Utils; … … 114 114 invalidateEastNorthCache(); 115 115 } else if (eastNorth != null) { 116 LatLon ll = Main.getProjection().eastNorth2latlon(eastNorth);116 LatLon ll = ProjectionRegistry.getProjection().eastNorth2latlon(eastNorth); 117 117 this.lat = ll.lat(); 118 118 this.lon = ll.lon(); 119 119 this.east = eastNorth.east(); 120 120 this.north = eastNorth.north(); 121 this.eastNorthCacheKey = Main.getProjection().getCacheKey();121 this.eastNorthCacheKey = ProjectionRegistry.getProjection().getCacheKey(); 122 122 } else { 123 123 this.lat = Double.NaN;
Note:
See TracChangeset
for help on using the changeset viewer.