Changeset 34746 in osm for applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap
- Timestamp:
- 2018-11-28T22:53:01+01:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationHelper.java
r32775 r34746 343 343 344 344 Calendar calendar = GregorianCalendar.getInstance(); // creates a new calendar instance 345 calendar.setTime(wpt.get Time()); // assigns calendar to given date345 calendar.setTime(wpt.getDate()); // assigns calendar to given date 346 346 return calendar.get(Calendar.HOUR_OF_DAY); 347 347 } … … 354 354 355 355 Calendar calendar = GregorianCalendar.getInstance(); // creates a new calendar instance 356 calendar.setTime(wpt.get Time()); // assigns calendar to given date356 calendar.setTime(wpt.getDate()); // assigns calendar to given date 357 357 return calendar.get(Calendar.MINUTE); 358 358 } -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx/ElevationProfile.java
r32775 r34746 195 195 protected void setStart(WayPoint wp) { 196 196 importantWayPoints[WAYPOINT_START] = wp; 197 this.start = wp.get Time();197 this.start = wp.getDate(); 198 198 } 199 199 … … 203 203 protected void setEnd(WayPoint wp) { 204 204 importantWayPoints[WAYPOINT_END] = wp; 205 this.end = wp.get Time();205 this.end = wp.getDate(); 206 206 } 207 207 … … 305 305 306 306 if (wp1 != null && wp2 != null) { 307 long diff = wp2.get Time().getTime() - wp1.getTime().getTime();307 long diff = wp2.getDate().getTime() - wp1.getDate().getTime(); 308 308 return diff; 309 309 } … … 378 378 @Override 379 379 public void visitWayPoint(WayPoint wp) { 380 if (wp.get Time().after(end)) {380 if (wp.getDate().after(end)) { 381 381 setEnd(wp); 382 382 } 383 383 384 if (wp.get Time().before(start)) {384 if (wp.getDate().before(start)) { 385 385 setStart(wp); 386 386 }
Note:
See TracChangeset
for help on using the changeset viewer.