Ignore:
Timestamp:
2018-11-30T00:13:59+01:00 (6 years ago)
Author:
donvip
Message:

update to JOSM 14456

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/gpsblam/src/org/openstreetmap/josm/plugins/gpsblam/GPSBlamInputData.java

    r34515 r34753  
    5454                                CachedLatLon cll = new CachedLatLon(wayPoint.getCoor());
    5555                                Point p = MainApplication.getMap().mapView.getPoint(cll.getEastNorth(projection));
    56                                 double pX = p.x-p1.x, pY=p.y-p1.y; // vector from point clicked to waypoint
     56                                double pX = p.x-p1.x, pY = p.y-p1.y; // vector from point clicked to waypoint
    5757                                double pPar = pX*dirX + pY*dirY; // parallel component
    5858                                double pPerp = pX*perpdirX + pY*perpdirY; // perpendicular component
     
    8080        this.add(cll);
    8181        Calendar day = new GregorianCalendar();
    82         day.setTimeInMillis((long) (wayPoint.time*1000d));
     82        day.setTimeInMillis(wayPoint.getTimeInMillis());
    8383        day.set(Calendar.HOUR_OF_DAY, 0);
    8484        day.set(Calendar.MINUTE, 0);
Note: See TracChangeset for help on using the changeset viewer.