Changeset 16570 in josm
- Timestamp:
- 2020-06-08T18:24:14+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/gpx/ConvertToDataLayerAction.java
r15419 r16570 9 9 import java.io.File; 10 10 import java.util.ArrayList; 11 import java.util.List; 11 12 12 13 import javax.swing.AbstractAction; … … 17 18 import org.openstreetmap.josm.actions.SimplifyWayAction; 18 19 import org.openstreetmap.josm.data.osm.DataSet; 20 import org.openstreetmap.josm.data.osm.Way; 19 21 import org.openstreetmap.josm.gui.ConditionalOptionPaneUtil; 20 22 import org.openstreetmap.josm.gui.MainApplication; … … 65 67 final DataSet ds = convert(); 66 68 if (ds != null) { 67 double err = SimplifyWayAction.askSimplifyWays(tr("Would you like to simplify the ways in the converted layer?"), true); 69 List<Way> ways = new ArrayList<>(ds.getWays()); 70 double err = SimplifyWayAction.askSimplifyWays(ways, tr("Would you like to simplify the ways in the converted layer?"), true); 68 71 if (err > 0) { 69 SimplifyWayAction.simplifyWays( new ArrayList<>(ds.getWays()), err);72 SimplifyWayAction.simplifyWays(ways, err); 70 73 } 71 74 final OsmDataLayer osmLayer = new OsmDataLayer(ds, tr("Converted from: {0}", layer.getName()), null);
Note:
See TracChangeset
for help on using the changeset viewer.