Ignore:
Timestamp:
2018-08-11T17:29:48+02:00 (6 years ago)
Author:
Don-vip
Message:

see #15229 - deprecate all Main methods related to projections. New ProjectionRegistry class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/ImportAudioAction.java

    r13130 r14120  
    2525import org.openstreetmap.josm.data.gpx.GpxTrackSegment;
    2626import org.openstreetmap.josm.data.gpx.WayPoint;
     27import org.openstreetmap.josm.data.projection.ProjectionRegistry;
    2728import org.openstreetmap.josm.gui.HelpAwareOptionPane;
    2829import org.openstreetmap.josm.gui.MainApplication;
     
    189190                    continue;
    190191                }
    191                 WayPoint wNear = layer.data.nearestPointOnTrack(w.getEastNorth(Main.getProjection()), snapDistance);
     192                WayPoint wNear = layer.data.nearestPointOnTrack(w.getEastNorth(ProjectionRegistry.getProjection()), snapDistance);
    192193                if (wNear != null) {
    193194                    WayPoint wc = new WayPoint(w.getCoor());
Note: See TracChangeset for help on using the changeset viewer.