Changeset 35470 in osm for applications/editors/josm/plugins/utilsplugin2/src/org
- Timestamp:
- 2020-05-24T10:05:31+02:00 (4 years ago)
- Location:
- applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/selection
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/selection/AdjacentNodesAction.java
r34812 r35470 33 33 } 34 34 35 private Set<Way> activeWays = new HashSet<>();35 private transient Set<Way> activeWays = new HashSet<>(); 36 36 37 37 @Override … … 60 60 // selecting nodes of selected ways 61 61 if (selectedNodes.isEmpty()) { 62 HashSet<Node> newNodes = newHashSet<>();62 Set<Node> newNodes = new LinkedHashSet<>(); 63 63 NodeWayUtils.addNodesConnectedToWays(selectedWays, newNodes); 64 64 activeWays.clear(); … … 71 71 } 72 72 73 Set<Node> newNodes = new HashSet<>();73 Set<Node> newNodes = new LinkedHashSet<>(); 74 74 for (Node node: selectedNodes) { 75 75 for (Way w: activeWays) { -
applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/selection/NodeWayUtils.java
r35468 r35470 258 258 Set<Way> ways = new HashSet<>(); 259 259 ways.addAll(n1.getParentWays()); 260 if (ways.stream().anyMatch(Way::isSelected)) { 261 // see #josm18735: use only selected ways 262 ways.removeIf(w -> !w.isSelected()); 263 } 260 264 for (Way w: ways) { 261 265
Note:
See TracChangeset
for help on using the changeset viewer.