Changeset 17132 in josm
- Timestamp:
- 2020-10-09T08:02:47+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/gpx/WayPoint.java
r17130 r17132 64 64 */ 65 65 public WayPoint(WayPoint p) { 66 attr = new HashMap<>( );66 attr = new HashMap<>(0); 67 67 attr.putAll(p.attr); 68 attr.put(PT_TIME, p.getDate()); 68 if (p.getDate() != null) { 69 attr.put(PT_TIME, p.getDate()); 70 } 69 71 lat = p.lat; 70 72 lon = p.lon; … … 82 84 */ 83 85 public WayPoint(LatLon ll) { 84 attr = new HashMap<>( );86 attr = new HashMap<>(0); 85 87 lat = ll.lat(); 86 88 lon = ll.lon();
Note:
See TracChangeset
for help on using the changeset viewer.