Ignore:
Timestamp:
2018-11-28T22:53:01+01:00 (6 years ago)
Author:
donvip
Message:

update to JOSM 14456

Location:
applications/editors/josm/plugins/ElevationProfile
Files:
3 edited

Legend:

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

    r34507 r34746  
    44    <property name="commit.message" value="[josm_elevationprofile]"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="14153"/>
     6    <property name="plugin.main.version" value="14456"/>
    77   
    88    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationHelper.java

    r32775 r34746  
    343343
    344344        Calendar calendar = GregorianCalendar.getInstance(); // creates a new calendar instance
    345         calendar.setTime(wpt.getTime());   // assigns calendar to given date
     345        calendar.setTime(wpt.getDate());   // assigns calendar to given date
    346346        return calendar.get(Calendar.HOUR_OF_DAY);
    347347    }
     
    354354
    355355        Calendar calendar = GregorianCalendar.getInstance(); // creates a new calendar instance
    356         calendar.setTime(wpt.getTime());   // assigns calendar to given date
     356        calendar.setTime(wpt.getDate());   // assigns calendar to given date
    357357        return calendar.get(Calendar.MINUTE);
    358358    }
  • applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx/ElevationProfile.java

    r32775 r34746  
    195195    protected void setStart(WayPoint wp) {
    196196        importantWayPoints[WAYPOINT_START] = wp;
    197         this.start = wp.getTime();
     197        this.start = wp.getDate();
    198198    }
    199199
     
    203203    protected void setEnd(WayPoint wp) {
    204204        importantWayPoints[WAYPOINT_END] = wp;
    205         this.end = wp.getTime();
     205        this.end = wp.getDate();
    206206    }
    207207
     
    305305
    306306        if (wp1 != null && wp2 != null) {
    307             long diff = wp2.getTime().getTime() - wp1.getTime().getTime();
     307            long diff = wp2.getDate().getTime() - wp1.getDate().getTime();
    308308            return diff;
    309309        }
     
    378378    @Override
    379379    public void visitWayPoint(WayPoint wp) {
    380         if (wp.getTime().after(end)) {
     380        if (wp.getDate().after(end)) {
    381381            setEnd(wp);
    382382        }
    383383
    384         if (wp.getTime().before(start)) {
     384        if (wp.getDate().before(start)) {
    385385            setStart(wp);
    386386        }
Note: See TracChangeset for help on using the changeset viewer.