Changeset 35209 in osm


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

update to JOSM 15496

Location:
applications/editors/josm/plugins/CommandLine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/CommandLine/build.xml

    r34574 r35209  
    44    <property name="commit.message" value="JOSM/CommandLine: fix exception after JOSM update"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="14153"/>
     6    <property name="plugin.main.version" value="15496"/>
    77
    88    <!-- Configure these properties (replace "..." accordingly).
  • 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.