Changeset 4678 in josm for trunk/src/org


Ignore:
Timestamp:
2011-12-21T10:14:42+01:00 (12 years ago)
Author:
simon04
Message:

fix #3736 - Split Crossing Ways test into Crossing Ways and Crossing Waterways

File:
1 edited

Legend:

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

    r4481 r4678  
    120120                        highlight.add(es2.ws);
    121121
     122                        String message;
     123                        if (isBuilding) {
     124                            message = tr("Crossing buildings");
     125                        } else if ((es1.waterway != null && es2.ws.way.get("highway") != null)
     126                                || (es2.waterway != null && es1.ws.way.get("highway") != null)) {
     127                            message = tr("Crossing waterway/highway");
     128                        } else {
     129                            message = tr("Crossing ways");
     130                        }
     131
    122132                        errors.add(new TestError(this, Severity.WARNING,
    123                             isBuilding ? tr("Crossing buildings") : tr("Crossing ways"),
     133                            message,
    124134                            CROSSING_WAYS,
    125135                            prims,
Note: See TracChangeset for help on using the changeset viewer.