- Timestamp:
- 2011-04-20T15:35:10+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r3965 r4046 523 523 } 524 524 525 // what is this loop meant to do? it creates waypoints but never526 // records them?527 525 for (Node n : data.getNodes()) { 528 526 if (n.isIncomplete() || n.isDeleted() || doneNodes.contains(n)) { 529 527 continue; 530 528 } 529 String name = n.get("name"); 530 if (name == null) 531 continue; 531 532 WayPoint wpt = new WayPoint(n.getCoor()); 533 wpt.attr.put("name", name); 532 534 if (!n.isTimestampEmpty()) { 533 535 wpt.attr.put("time", DateUtils.fromDate(n.getTimestamp())); 534 536 wpt.setTime(); 535 537 } 536 String name = n.get("name"); 537 if (name != null) { 538 wpt.attr.put("name", name); 539 } 538 String desc = n.get("description"); 539 if (desc != null) { 540 wpt.attr.put("desc", desc); 541 } 542 543 gpxData.waypoints.add(wpt); 540 544 } 541 545 return gpxData;
Note:
See TracChangeset
for help on using the changeset viewer.