Changeset 34753 in osm for applications/editors/josm


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

update to JOSM 14456

Location:
applications/editors/josm/plugins/gpsblam
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/gpsblam/build.xml

    r34515 r34753  
    55    <property name="commit.message" value="Commit message"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="14153"/>
     7    <property name="plugin.main.version" value="14456"/>
    88
    99    <!-- Configure these properties (replace "..." accordingly).
  • 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.