Changeset 15407 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2019-10-03T13:40:34+02:00 (5 years ago)
Author:
GerdP
Message:

fix #18198: Make sure that found way is usable, regression from r15344

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/UnconnectedWays.java

    r15354 r15407  
    541541            BBox bbox = new BBox(endnode.getCoor(), x.getCoor());
    542542            for (Way nearbyWay: ds.searchWays(bbox)) {
    543                 if (nearbyWay != w && nearbyWay.hasTag("barrier") && !endnode.getParentWays().contains(nearbyWay)) {
     543                if (nearbyWay != w && nearbyWay.isUsable() && nearbyWay.hasTag("barrier") && !endnode.getParentWays().contains(nearbyWay)) {
    544544                    //make sure that the barrier is really between the two nodes, not just close to them
    545545                    Way directWay = new Way();
Note: See TracChangeset for help on using the changeset viewer.