Changeset 35221 in osm for applications/editors/josm/plugins/DirectDownload
- Timestamp:
- 2019-11-03T22:22:25+01:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/DirectDownload
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/DirectDownload/build.xml
r34483 r35221 4 4 <property name="commit.message" value="Commit message"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="1 4153"/>6 <property name="plugin.main.version" value="15502"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/DirectDownload/src/org/openstreetmap/josm/plugins/directdownload/DirectDownload.java
r34593 r35221 12 12 import org.openstreetmap.josm.data.gpx.GpxData; 13 13 import org.openstreetmap.josm.data.gpx.GpxTrack; 14 import org.openstreetmap.josm.data.gpx.I mmutableGpxTrack;14 import org.openstreetmap.josm.data.gpx.IGpxTrack; 15 15 import org.openstreetmap.josm.gui.MainApplication; 16 16 import org.openstreetmap.josm.gui.MainMenu; … … 62 62 GpxData dataNew = new GpxData(); 63 63 64 for (GpxTrack trk : data.getTracks()) { 64 for (IGpxTrack trk : data.getTracks()) { 65 65 HashMap<String, Object> attrib = new HashMap<>(trk.getAttributes()); 66 66 if (!trk.getAttributes().containsKey(GpxConstants.GPX_NAME)) { … … 71 71 } 72 72 // replace the existing trace in the unmodifiable tracks 73 dataNew.addTrack(new ImmutableGpxTrack(new ArrayList<>(trk.getSegments()), attrib));73 dataNew.addTrack(new GpxTrack(new ArrayList<>(trk.getSegments()), attrib)); 74 74 } 75 75
Note:
See TracChangeset
for help on using the changeset viewer.