Ticket #18137: 18137.5.patch

File 18137.5.patch, 764 bytes (added by GerdP, 6 years ago)

Don't try to follow unsuable ways

  • src/org/openstreetmap/josm/data/validation/tests/UnconnectedWays.java

     
    444444            if (visited != null) {
    445445                visited.add(node);
    446446                for (final Way way : node.getParentWays()) {
    447                     if (isCandidate(way)) {
     447                    if (way.isUsable() && isCandidate(way)) {
    448448                        List<Node> nextNodes = new ArrayList<>();
    449449                        int pos = way.getNodes().indexOf(node);
    450450                        if (pos > 0) {