Changeset 12778 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2017-09-08T01:04:05+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/session/SessionWriter.java
r12630 r12778 31 31 import org.openstreetmap.josm.data.coor.EastNorth; 32 32 import org.openstreetmap.josm.data.coor.LatLon; 33 import org.openstreetmap.josm.data.projection.Projections;34 33 import org.openstreetmap.josm.gui.MainApplication; 35 34 import org.openstreetmap.josm.gui.MapView; … … 266 265 MapView mapView = MainApplication.getMap().mapView; 267 266 EastNorth center = mapView.getCenter(); 268 LatLon centerLL = Projections.inverseProject(center);267 LatLon centerLL = Main.getProjection().eastNorth2latlon(center); 269 268 centerEl.setAttribute("lat", Double.toString(centerLL.lat())); 270 269 centerEl.setAttribute("lon", Double.toString(centerLL.lon()));
Note:
See TracChangeset
for help on using the changeset viewer.