Changeset 3700 in josm for trunk/src/org
- Timestamp:
- 2010-12-05T17:56:01+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateNode.java
r3674 r3700 375 375 } 376 376 377 if(checkAndConfirmOutlyingDeletes(nodes ))377 if(checkAndConfirmOutlyingDeletes(nodes, target)) 378 378 return MergeNodesAction.mergeNodes(Main.main.getEditLayer(), nodes, target); 379 379 … … 390 390 * Request confirmation if he is. 391 391 */ 392 private static boolean checkAndConfirmOutlyingDeletes(LinkedHashSet<Node> del ) {392 private static boolean checkAndConfirmOutlyingDeletes(LinkedHashSet<Node> del, Node ignore) { 393 393 Area a = Main.main.getCurrentDataSet().getDataSourceArea(); 394 394 if (a != null) { 395 395 for (OsmPrimitive osm : del) { 396 if (osm instanceof Node && !osm.isNew() ) {396 if (osm instanceof Node && !osm.isNew() && osm != ignore) { 397 397 Node n = (Node) osm; 398 398 if (!a.contains(n.getCoor())) {
Note:
See TracChangeset
for help on using the changeset viewer.