Changeset 21582 in osm for applications/editors/josm/plugins/editgpx/src/org/openstreetmap
- Timestamp:
- 2010-06-04T20:42:35+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/EditGpxLayer.java
r21580 r21582 150 150 Main.main.addLayer(new GpxLayer(toGpxData(false), tr("Converted from: {0}", getName()))); 151 151 Main.main.removeLayer(EditGpxLayer.this); 152 Main.map.selectSelectTool(false); 152 if(Main.map.mapMode instanceof EditGpxMode) 153 Main.map.selectSelectTool(false); 153 154 } 154 155 } … … 162 163 Main.main.addLayer(new GpxLayer(toGpxData(true), tr("Converted from: {0}", getName()))); 163 164 Main.main.removeLayer(EditGpxLayer.this); 164 Main.map.selectSelectTool(false); 165 if(Main.map.mapMode instanceof EditGpxMode) 166 Main.map.selectSelectTool(false); 165 167 } 166 168 } -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/EditGpxMode.java
r21474 r21582 173 173 if (oldLayer instanceof EditGpxLayer) { 174 174 currentEditLayer = null; 175 if(Main.map.mapMode instanceof EditGpxMode) 176 Main.map.selectSelectTool(false); 175 177 } 176 178 } -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/GPXLayerImportAction.java
r21472 r21582 106 106 107 107 synchronized(importing) { 108 this.data.load(gpx.data );108 this.data.load(gpx.data, dropFirst.isSelected()); 109 109 } 110 110 Main.map.mapView.repaint(); -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxData.java
r21472 r21582 16 16 private final List<WayPoint> waypoints = new ArrayList<WayPoint>(); 17 17 18 public void load(GpxData data) { 19 tracks.clear(); 18 public void load(GpxData data, boolean drop) { 19 if(drop) 20 tracks.clear(); 20 21 for (GpxTrack track: data.tracks) { 21 22 tracks.add(new EditGpxTrack(track));
Note:
See TracChangeset
for help on using the changeset viewer.