Changeset 6724 in josm


Ignore:
Timestamp:
2014-01-18T00:21:11+01:00 (6 years ago)
Author:
simon04
Message:

see #7662 - Validator: do not show "Way terminates on Area" if way is connected to ferry route

File:
1 edited

Legend:

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

    r6639 r6724  
    1515import org.openstreetmap.josm.data.validation.TestError;
    1616import org.openstreetmap.josm.gui.mappaint.ElemStyles;
     17import org.openstreetmap.josm.tools.Predicates;
     18import org.openstreetmap.josm.tools.Utils;
    1719
    1820/**
     
    6567    private void testForError(Way w, Node wayNode, OsmPrimitive p) {
    6668        if (wayNode.isOutsideDownloadArea()) {
     69        } else if (Utils.exists(wayNode.getReferrers(), Predicates.hasTag("route", "ferry"))) {
    6770        } else if (isArea(p)) {
    6871            addError(w, wayNode, p);
Note: See TracChangeset for help on using the changeset viewer.