Changeset 34972 in osm for applications/editors/josm/plugins/terracer/src/org
- Timestamp:
- 2019-04-11T02:04:26+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/terracer/src/org/openstreetmap/josm/plugins/terracer/TerracerAction.java
r34584 r34972 47 47 import org.openstreetmap.josm.tools.Shortcut; 48 48 import org.openstreetmap.josm.tools.UserCancelException; 49 import org.openstreetmap.josm.tools.Utils; 49 50 50 51 /** … … 119 120 outline = (Way) prim; 120 121 } else if (sel.size() > 1) { 121 List<Way> ways = OsmPrimitive.getFilteredList(sel, Way.class);122 List<Way> ways = new ArrayList<>(Utils.filteredCollection(sel, Way.class)); 122 123 Iterator<Way> wit = ways.iterator(); 123 124 while (wit.hasNext()) { … … 143 144 throw new InvalidUserInputException("no outline way found"); 144 145 145 List<Node> nodes = OsmPrimitive.getFilteredList(sel, Node.class);146 List<Node> nodes = new ArrayList<>(Utils.filteredCollection(sel, Node.class)); 146 147 Iterator<Node> nit = nodes.iterator(); 147 148 // Actually this should test if the selected address nodes lie
Note:
See TracChangeset
for help on using the changeset viewer.