Ignore:
Timestamp:
2019-11-02T15:22:15+01:00 (5 years ago)
Author:
donvip
Message:

update to JOSM 15496

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/CommandLine/src/org/openstreetmap/josm/plugins/commandline/GpxFilter.java

    r34574 r35209  
    88import org.openstreetmap.josm.data.gpx.GpxData;
    99import org.openstreetmap.josm.data.gpx.GpxTrack;
    10 import org.openstreetmap.josm.data.gpx.GpxTrackSegment;
    11 import org.openstreetmap.josm.data.gpx.ImmutableGpxTrack;
     10import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    1211import org.openstreetmap.josm.data.gpx.WayPoint;
    1312import org.openstreetmap.josm.data.osm.BBox;
     
    3130        for (GpxTrack track : data.tracks) {
    3231            currentTrack = new ArrayList<>();
    33             for (GpxTrackSegment segment : track.getSegments()) {
     32            for (IGpxTrackSegment segment : track.getSegments()) {
    3433                currentSegment = new ArrayList<>();
    3534                for (WayPoint wp : segment.getWayPoints()) {
     
    4847                }
    4948            }
    50             this.data.tracks.add(new ImmutableGpxTrack(currentTrack, Collections.<String, Object>emptyMap()));
     49            this.data.tracks.add(new GpxTrack(currentTrack, Collections.<String, Object>emptyMap()));
    5150        }
    5251    }
Note: See TracChangeset for help on using the changeset viewer.