Changeset 35066 in osm for applications/editors/josm/plugins/ElevationProfile
- Timestamp:
- 2019-07-15T00:23:23+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx/ElevationProfile.java
r34928 r35066 10 10 import org.openstreetmap.josm.plugins.elevation.ElevationHelper; 11 11 import org.openstreetmap.josm.plugins.elevation.IElevationProfile; 12 import org.openstreetmap.josm.tools.Logging; 12 13 13 14 … … 305 306 306 307 if (wp1 != null && wp2 != null) { 307 return wp2.getDate().getTime() - wp1.getDate().getTime(); 308 Date wp1Date = wp1.getDate(); 309 Date wp2Date = wp2.getDate(); 310 if (wp1Date != null && wp2Date != null) { 311 return wp2Date.getTime() - wp1Date.getTime(); 312 } else { 313 Logging.warn("Waypoints without date: " + wp1 + " / " + wp2); 314 } 308 315 } 309 316
Note:
See TracChangeset
for help on using the changeset viewer.