Changeset 15681 in josm for trunk/src/org
- Timestamp:
- 2020-01-11T16:48:54+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java
r15628 r15681 11 11 import java.util.Collection; 12 12 import java.util.Collections; 13 import java.util.HashSet; 13 14 import java.util.LinkedHashSet; 14 15 import java.util.LinkedList; 15 16 import java.util.List; 16 17 import java.util.Objects; 18 import java.util.Set; 17 19 import java.util.stream.Collectors; 18 20 … … 281 283 return; 282 284 } 285 286 // see #18083: check if we will combine ways at nodes outside of the download area 287 Set<Node> endNodesOutside = new HashSet<>(); 288 for (Way w : selectedWays) { 289 final Node[] endnodes = { w.firstNode(), w.lastNode() }; 290 for (Node n : endnodes) { 291 if (!n.isNew() && n.isOutsideDownloadArea() && !endNodesOutside.add(n)) { 292 new Notification(tr("Combine ways refused<br>" + "(A shared node is outside of the download area)")) 293 .setIcon(JOptionPane.INFORMATION_MESSAGE).show(); 294 return; 295 296 } 297 } 298 } 299 283 300 // combine and update gui 284 301 Pair<Way, Command> combineResult;
Note:
See TracChangeset
for help on using the changeset viewer.