Changeset 34751 in osm for applications/editors/josm


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
Files:
4 edited

Legend:

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

    r34737 r34751  
    44    <property name="commit.message" value="Changed constructor signature of plugin main class"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="14434"/>
     6    <property name="plugin.main.version" value="14456"/>
    77   
    88    <!-- Configure these properties (replace "..." accordingly).
  • 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.