Changeset 14120 in josm for trunk/src/org/openstreetmap/josm/io/session/SessionWriter.java
- Timestamp:
- 2018-08-11T17:29:48+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/session/SessionWriter.java
r13901 r14120 26 26 import javax.xml.transform.stream.StreamResult; 27 27 28 import org.openstreetmap.josm.Main;29 28 import org.openstreetmap.josm.data.coor.EastNorth; 30 29 import org.openstreetmap.josm.data.coor.LatLon; 30 import org.openstreetmap.josm.data.projection.ProjectionRegistry; 31 31 import org.openstreetmap.josm.gui.MainApplication; 32 32 import org.openstreetmap.josm.gui.MapView; … … 264 264 MapView mapView = MainApplication.getMap().mapView; 265 265 EastNorth center = mapView.getCenter(); 266 LatLon centerLL = Main.getProjection().eastNorth2latlon(center);266 LatLon centerLL = ProjectionRegistry.getProjection().eastNorth2latlon(center); 267 267 centerEl.setAttribute("lat", Double.toString(centerLL.lat())); 268 268 centerEl.setAttribute("lon", Double.toString(centerLL.lon())); … … 293 293 } 294 294 } 295 String code = Main.getProjection().toCode();295 String code = ProjectionRegistry.getProjection().toCode(); 296 296 if (code != null) { 297 297 Element codeEl = doc.createElement("code");
Note:
See TracChangeset
for help on using the changeset viewer.