Changeset 29222 in osm for applications/editors/josm/plugins/DirectDownload/src/org
- Timestamp:
- 2013-01-31T14:39:51+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/DirectDownload/src/org/openstreetmap/josm/plugins/directdownload/DirectDownload.java
r26509 r29222 65 65 GpxReader r = new GpxReader(is); 66 66 boolean parsedProperly = r.parse(true); 67 GpxLayer gpxLayer = new GpxLayer(r. data, track.filename, true);67 GpxLayer gpxLayer = new GpxLayer(r.getGpxData(), track.filename, true); 68 68 69 if (r. data.hasRoutePoints() || r.data.hasTrackPoints()) {69 if (r.getGpxData().hasRoutePoints() || r.getGpxData().hasTrackPoints()) { 70 70 Main.main.addLayer(gpxLayer); 71 71 } 72 72 73 if (Main.pref.getBoolean("marker.makeautomarkers", true) && !r. data.waypoints.isEmpty()) {74 MarkerLayer ml = new MarkerLayer(r. data, tr("Markers from {0}", track.filename), null, gpxLayer);73 if (Main.pref.getBoolean("marker.makeautomarkers", true) && !r.getGpxData().waypoints.isEmpty()) { 74 MarkerLayer ml = new MarkerLayer(r.getGpxData(), tr("Markers from {0}", track.filename), null, gpxLayer); 75 75 if (ml.data.size() > 0) { 76 76 Main.main.addLayer(ml);
Note:
See TracChangeset
for help on using the changeset viewer.