Changeset 34751 in osm for applications/editors/josm
- Timestamp:
- 2018-11-28T23:04:48+01:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/editgpx
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/editgpx/build.xml
r34737 r34751 4 4 <property name="commit.message" value="Changed constructor signature of plugin main class"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="144 34"/>6 <property name="plugin.main.version" value="14456"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxTrack.java
r34737 r34751 52 52 // convert to anonymous time 53 53 for (WayPoint w : points) { 54 double t = w. time- minTime;54 double t = w.getTime() - minTime; 55 55 w.setTimeInMillis((long)(t * 1000)); 56 assert w. time== t;56 assert w.getTime() == t; 57 57 if (w.attr.containsKey("name")) { 58 58 w.attr.put("name", "anon"); //time information can also be in "name" field. so delete time information -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxTrackSegment.java
r34737 r34751 49 49 */ 50 50 public double minNonDeletedTime() { 51 return Collections.min(getNonDeletedWaypoints()). time;51 return Collections.min(getNonDeletedWaypoints()).getTime(); 52 52 } 53 53 -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxWayPoint.java
r34737 r34751 14 14 15 15 public EditGpxWayPoint(WayPoint wayPoint) { 16 this.time = wayPoint. time;16 this.time = wayPoint.getTime(); 17 17 this.coor = new CachedLatLon(wayPoint.getCoor()); 18 18 this.attributes = new HashMap<>(wayPoint.attr); … … 21 21 public WayPoint createWayPoint() { 22 22 WayPoint result = new WayPoint(getCoor()); 23 result. time = time;23 result.setTime((long) time); 24 24 result.attr = attributes; 25 25 return result;
Note:
See TracChangeset
for help on using the changeset viewer.