Changeset 15874 in josm
- Timestamp:
- 2020-02-17T14:33:26+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/DeleteCommand.java
r14654 r15874 441 441 442 442 Collection<Command> cmds = new LinkedList<>(); 443 Set<Node> nodesToRemove = new HashSet<>(Utils.filteredCollection(primitivesToDelete, Node.class)); 443 444 for (Way w : waysToBeChanged) { 444 445 Way wnew = new Way(w); 445 wnew.removeNodes(n ew HashSet<>(Utils.filteredCollection(primitivesToDelete, Node.class)));446 wnew.removeNodes(nodesToRemove); 446 447 if (wnew.getNodesCount() < 2) { 447 448 primitivesToDelete.add(w);
Note:
See TracChangeset
for help on using the changeset viewer.