Changeset 5959 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2013-05-14T20:03:20+02:00 (12 years ago)
Author:
Don-vip
Message:

fix #8714 - time span of opened gpx file not correct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java

    r5815 r5959  
    160160            }
    161161
    162             int diff = (int) (bounds[1].getTime() - bounds[0].getTime());
     162            int diff = (int) (bounds[1].getTime() - bounds[0].getTime()) / 1000;
    163163            ts += String.format(" (%d:%02d)", diff / 3600, (diff % 3600) / 60);
    164164        }
Note: See TracChangeset for help on using the changeset viewer.