Changeset 34755 in osm for applications/editors


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

update to JOSM 14456

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

Legend:

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

    r34523 r34755  
    55    <property name="commit.message" value="InfoMode : for shortcurt parser"/>
    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/infomode/src/org/openstreetmap/josm/plugins/infomode/InfoMode.java

    r34523 r34755  
    224224                sg: for (GpxTrackSegment seg : track.getSegments()) {
    225225                    for (WayPoint S : seg.getWayPoints()) {
    226                         if (S.time != 0) {
     226                        if (S.hasDate()) {
    227227                            f = false;
    228228                            break sg;
     
    288288                    if (oldPopup != null) oldPopup.hide();
    289289                    double vel = -1;
    290                     if (prevWp != null && wp.time != prevWp.time) {
     290                    if (prevWp != null && wp.getTimeInMillis() != prevWp.getTimeInMillis()) {
    291291                        vel = wp.getCoor().greatCircleDistance(prevWp.getCoor())/
    292                                 (wp.time-prevWp.time);
     292                                (wp.getTime()-prevWp.getTime());
    293293                    }
    294294                    infoPanel.setData(wp, trk, vel, gpxL.data.tracks);
  • applications/editors/josm/plugins/infomode/src/org/openstreetmap/josm/plugins/infomode/InfoPanel.java

    r33722 r34755  
    7878            for (GpxTrackSegment seg : trk.getSegments()) {
    7979                    for (WayPoint S : seg.getWayPoints()) {
    80                         if (S.time > tm) {
    81                             tm = S.time;
     80                        if (S.getTime() > tm) {
     81                            tm = S.getTime();
    8282                        }
    8383                    }
     
    8888                sg: for (GpxTrackSegment seg : track.getSegments()) {
    8989                    for (WayPoint S : seg.getWayPoints()) {
    90                         if (S.time > tm) {
     90                        if (S.getTime() > tm) {
    9191                            f = false;
    9292                            break sg;
     
    105105        this.tracks = tracks;
    106106        this.trk = trk;
    107         if (wp.time == 0.0) {
     107        if (!wp.hasDate()) {
    108108            label1.setText(tr("No timestamp"));
    109109            but2.setVisible(false);
    110110        } else {
    111             label1.setText(DateUtils.formatDateTime(wp.getTime(), DateFormat.DEFAULT, DateFormat.DEFAULT));
     111            label1.setText(DateUtils.formatDateTime(wp.getDate(), DateFormat.DEFAULT, DateFormat.DEFAULT));
    112112            but2.setVisible(true);
    113113        }
Note: See TracChangeset for help on using the changeset viewer.