Ignore:
Timestamp:
2010-01-30T20:10:15+01:00 (15 years ago)
Author:
jttt
Message:

Adapted for JOSM r2907

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementLayer.java

    r18595 r19681  
    3232import org.openstreetmap.josm.data.coor.LatLon;
    3333import org.openstreetmap.josm.data.gpx.GpxTrack;
     34import org.openstreetmap.josm.data.gpx.GpxTrackSegment;
    3435import org.openstreetmap.josm.data.gpx.WayPoint;
    3536import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
     
    316317
    317318                for (GpxTrack trk : gpx.data.tracks) {
    318                     for (Collection<WayPoint> trkseg : trk.trackSegs) {
    319                         for(WayPoint p: trkseg){
     319                    for (GpxTrackSegment trkseg : trk.getSegments()) {
     320                        for(WayPoint p: trkseg.getWayPoints()){
    320321                            points.add(p);
    321322                        }
Note: See TracChangeset for help on using the changeset viewer.