Changeset 34928 in osm for applications/editors/josm/plugins
- Timestamp:
- 2019-03-21T10:09:09+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx/ElevationProfile.java
r34746 r34928 305 305 306 306 if (wp1 != null && wp2 != null) { 307 long diff = wp2.getDate().getTime() - wp1.getDate().getTime(); 308 return diff; 307 return wp2.getDate().getTime() - wp1.getDate().getTime(); 309 308 } 310 309 … … 378 377 @Override 379 378 public void visitWayPoint(WayPoint wp) { 380 if (wp.getDate().after(end)) { 381 setEnd(wp); 382 } 383 384 if (wp.getDate().before(start)) { 385 setStart(wp); 379 if (wp == null) 380 return; 381 382 if (wp.hasDate()) { 383 if (wp.getDate().after(end)) { 384 setEnd(wp); 385 } 386 387 if (wp.getDate().before(start)) { 388 setStart(wp); 389 } 386 390 } 387 391
Note:
See TracChangeset
for help on using the changeset viewer.