- Timestamp:
- 2015-10-05T23:07:07+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/layer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r8807 r8830 743 743 final GpxData data = toGpxData(); 744 744 final GpxLayer gpxLayer = new GpxLayer(data, tr("Converted from: {0}", getName())); 745 gpxLayer.setAssociatedFile(new File(getAssociatedFile().getParentFile(), getAssociatedFile().getName() + ".gpx")); 745 746 Main.main.addLayer(gpxLayer); 746 747 if (Main.pref.getBoolean("marker.makeautomarkers", true) && !data.waypoints.isEmpty()) { -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/ConvertToDataLayerAction.java
r8804 r8830 7 7 import java.awt.GridBagLayout; 8 8 import java.awt.event.ActionEvent; 9 import java.io.File; 9 10 import java.util.ArrayList; 10 11 import java.util.List; … … 128 129 } 129 130 final DataSet ds = convert(); 130 final OsmDataLayer layer = new OsmDataLayer(ds, tr("Converted from: {0}", this.layer.getName()), this.layer.getAssociatedFile()); 131 final OsmDataLayer layer = new OsmDataLayer(ds, tr("Converted from: {0}", this.layer.getName()), null); 132 layer.setAssociatedFile(new File(this.layer.getAssociatedFile().getParentFile(), this.layer.getAssociatedFile().getName() + ".osm")); 131 133 layer.setUploadDiscouraged(true); 132 134 Main.main.addLayer(layer);
Note:
See TracChangeset
for help on using the changeset viewer.