Ignore:
Timestamp:
2008-02-15T19:29:28+01:00 (17 years ago)
Author:
framm
Message:
  • use waypoint's "desc" attribute in lieu of "name" if "name" is not present
  • add extra marker for trackpoints that have "name" or "desc" set

patch by David Earl <david@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/GpxReader.java

    r512 r541  
    237237                                        currentState = states.pop();
    238238                                        currentTrackSeg.add(currentWayPoint);
     239                                        if (currentWayPoint.attr.containsKey("name") || currentWayPoint.attr.containsKey("desc")) {
     240                                                currentData.waypoints.add(currentWayPoint);
     241                                        }
    239242                                } else if (qName.equals("wpt")) {
    240243                                        currentState = states.pop();
Note: See TracChangeset for help on using the changeset viewer.