Ignore:
Timestamp:
2018-11-28T23:04:48+01:00 (6 years ago)
Author:
donvip
Message:

update to JOSM 14456

Location:
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxTrack.java

    r34737 r34751  
    5252                        // convert to anonymous time
    5353                        for (WayPoint w : points) {
    54                             double t = w.time - minTime;
     54                            double t = w.getTime() - minTime;
    5555                            w.setTimeInMillis((long)(t * 1000));
    56                             assert w.time == t;
     56                            assert w.getTime() == t;
    5757                            if (w.attr.containsKey("name")) {
    5858                                w.attr.put("name", "anon"); //time information can also be in "name" field. so delete time information
  • applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxTrackSegment.java

    r34737 r34751  
    4949     */
    5050    public double minNonDeletedTime() {
    51         return Collections.min(getNonDeletedWaypoints()).time;
     51        return Collections.min(getNonDeletedWaypoints()).getTime();
    5252    }
    5353
  • applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxWayPoint.java

    r34737 r34751  
    1414
    1515    public EditGpxWayPoint(WayPoint wayPoint) {
    16         this.time = wayPoint.time;
     16        this.time = wayPoint.getTime();
    1717        this.coor = new CachedLatLon(wayPoint.getCoor());
    1818        this.attributes = new HashMap<>(wayPoint.attr);
     
    2121    public WayPoint createWayPoint() {
    2222        WayPoint result = new WayPoint(getCoor());
    23         result.time = time;
     23        result.setTime((long) time);
    2424        result.attr = attributes;
    2525        return result;
Note: See TracChangeset for help on using the changeset viewer.