Changeset 35465 in osm for applications
- Timestamp:
- 2020-05-21T06:56:55+02:00 (5 years ago)
- Location:
- applications/editors/josm/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx/ElevationProfile.java
r35444 r35465 197 197 importantWayPoints[WAYPOINT_START] = wp; 198 198 if(wp.getDate() != null) 199 199 this.start = wp.getDate(); 200 200 } 201 201 … … 206 206 importantWayPoints[WAYPOINT_END] = wp; 207 207 if(wp.getDate() != null) 208 208 this.end = wp.getDate(); 209 209 } 210 210 -
applications/editors/josm/plugins/undelete/src/org/openstreetmap/josm/plugins/undelete/UndeleteAction.java
r35398 r35465 59 59 private Set<OsmPrimitive> restored; 60 60 61 62 63 64 65 66 67 68 69 70 61 private Set<PrimitiveId> missingPrimitives; 62 63 private Worker(OsmPrimitive parent, OsmDataLayer layer, List<PrimitiveId> ids, Set<OsmPrimitive> restored, 64 HistoryLoadTask task) { 65 this.parent = parent; 66 this.layer = layer; 67 this.ids = ids; 68 this.restored = restored; 69 this.missingPrimitives = task.getMissingPrimitives(); 70 } 71 71 72 72 @Override … … 74 74 List<Node> nodes = new ArrayList<>(); 75 75 for (PrimitiveId pid : ids) { 76 77 78 76 if (missingPrimitives == null || missingPrimitives.contains(pid)) { 77 continue; 78 } 79 79 80 80 OsmPrimitive primitive = layer.data.getPrimitiveById(pid); … … 86 86 History h = HistoryDataSet.getInstance().getHistory(id, type); 87 87 88 89 90 91 88 if (h == null) { 89 Logging.warn("Cannot find history for " + type + " " + id); 90 return; 91 } 92 92 93 93 HistoryOsmPrimitive hPrimitive1 = h.getLatest();
Note:
See TracChangeset
for help on using the changeset viewer.