Changeset 944 in josm
- Timestamp:
- 2008-09-11T08:45:05+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/MarkerLayer.java
r942 r944 81 81 /* calculate time differences in waypoints */ 82 82 double time = wpt.time; 83 if (firstTime < 0) { 83 boolean wpt_has_link = wpt.attr.containsKey("link"); 84 if (firstTime < 0 && wpt_has_link) { 84 85 firstTime = time; 85 86 for (GpxLink oneLink : (Collection<GpxLink>) wpt.attr.get("link")) { … … 88 89 } 89 90 } 90 for (GpxLink oneLink : (Collection<GpxLink>) wpt.attr.get("link")) { 91 if (!oneLink.uri.equals(lastLinkedFile))firstTime = time; 92 lastLinkedFile = oneLink.uri; 93 break; 91 if (wpt_has_link) { 92 for (GpxLink oneLink : (Collection<GpxLink>) wpt.attr.get("link")) { 93 if (!oneLink.uri.equals(lastLinkedFile))firstTime = time; 94 lastLinkedFile = oneLink.uri; 95 break; 96 } 94 97 } 95 98 Marker m = Marker.createMarker(wpt, indata.storageFile, this, time, time - firstTime);
Note:
See TracChangeset
for help on using the changeset viewer.