Ignore:
Timestamp:
2009-07-03T23:35:00+02:00 (16 years ago)
Author:
stoecker
Message:

fixes for JOSM 1725 - utilsplugin JumpToAction still missing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementLayer.java

    r15953 r16294  
    7575        Point l = null;
    7676        for(WayPoint p:points){
    77             LatLon c = p.latlon;
    78             Point pnt = Main.map.mapView.getPoint(Main.proj.latlon2eastNorth(c));
     77            Point pnt = Main.map.mapView.getPoint(p.getCoor());
    7978            if (l != null){
    8079                g.drawLine(l.x, l.y, pnt.x, pnt.y);
     
    196195
    197196    public static double calcDistance(WayPoint p1, WayPoint p2){
    198         return calcDistance(p1.latlon, p2.latlon);
     197        return calcDistance(p1.getCoor(), p2.getCoor());
    199198    }
    200199
    201200    public static double angleBetween(WayPoint p1, WayPoint p2){
    202         return angleBetween(p1.latlon, p2.latlon);
     201        return angleBetween(p1.getCoor(), p2.getCoor());
    203202    }
    204203
Note: See TracChangeset for help on using the changeset viewer.