Ignore:
Timestamp:
2017-09-08T01:04:05+02:00 (4 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/gui/NavigatableComponent.java

    r12725 r12778  
    5353import org.openstreetmap.josm.data.projection.Projection;
    5454import org.openstreetmap.josm.data.projection.ProjectionChangeListener;
    55 import org.openstreetmap.josm.data.projection.Projections;
    5655import org.openstreetmap.josm.gui.help.Helpful;
    5756import org.openstreetmap.josm.gui.layer.NativeScaleLayer;
     
    715714     */
    716715    public void zoomTo(ILatLon newCenter) {
    717         zoomTo(Projections.project(newCenter));
     716        zoomTo(getProjection().latlon2eastNorth(newCenter));
    718717    }
    719718
Note: See TracChangeset for help on using the changeset viewer.