Ignore:
Timestamp:
2017-09-08T01:04:05+02:00 (2 years ago)
Author:
bastiK
Message:

see #15229 - deprecate Projections#project and Projections#inverseProject

replacement is a bit more verbose, but the fact that Main.proj is
involved need not be hidden

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/session/SessionWriter.java

    r12630 r12778  
    3131import org.openstreetmap.josm.data.coor.EastNorth;
    3232import org.openstreetmap.josm.data.coor.LatLon;
    33 import org.openstreetmap.josm.data.projection.Projections;
    3433import org.openstreetmap.josm.gui.MainApplication;
    3534import org.openstreetmap.josm.gui.MapView;
     
    266265        MapView mapView = MainApplication.getMap().mapView;
    267266        EastNorth center = mapView.getCenter();
    268         LatLon centerLL = Projections.inverseProject(center);
     267        LatLon centerLL = Main.getProjection().eastNorth2latlon(center);
    269268        centerEl.setAttribute("lat", Double.toString(centerLL.lat()));
    270269        centerEl.setAttribute("lon", Double.toString(centerLL.lon()));
Note: See TracChangeset for help on using the changeset viewer.