Changeset 9738 in josm


Ignore:
Timestamp:
2016-02-04T20:07:33+01:00 (4 years ago)
Author:
simon04
Message:

GPX: Avoid unnecessary update of PT_TIME

Relates to r9383.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/gpx/WayPoint.java

    r9383 r9738  
    1717public class WayPoint extends WithAttributes implements Comparable<WayPoint>, TemplateEngineDataProvider {
    1818
     19    /**
     20     * The seconds (not milliseconds!) since 1970-01-01.
     21     */
    1922    public double time;
    2023    public Color customColoring;
     
    119122            try {
    120123                final Date time = DateUtils.fromString(get(PT_TIME).toString());
    121                 setTime(time);
     124                this.time = time.getTime() / 1000.;
    122125                return time;
    123126            } catch (Exception e) {
Note: See TracChangeset for help on using the changeset viewer.