Changeset 35811 in osm for applications/editors/josm/plugins/turnlanes/src
- Timestamp:
- 2021-08-25T20:11:20+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/turnlanes/src/org/openstreetmap/josm/plugins/turnlanes/model/Validator.java
r35204 r35811 296 296 final Way to = TurnlanesUtils.getMemberWay(r, Constants.TURN_ROLE_TO); 297 297 298 if (from.firstNode().equals(from.lastNode())) { 299 issues.add(Issue.newError(r, from, "The from-way both starts as well as ends at the via-node.")); 300 } 301 if (to.firstNode().equals(to.lastNode())) { 302 issues.add(Issue.newError(r, to, "The to-way both starts as well as ends at the via-node.")); 298 if (from.isEmpty()) { 299 issues.add(Issue.newError(r, from, tr("The from-way is empty."))); 300 } else if (from.firstNode().equals(from.lastNode())) { 301 issues.add(Issue.newError(r, from, tr("The from-way both starts as well as ends at the via-node."))); 302 } 303 if (to.isEmpty()) { 304 issues.add(Issue.newError(r, from, tr("The to-way is empty."))); 305 } else if (to.firstNode().equals(to.lastNode())) { 306 issues.add(Issue.newError(r, to, tr("The to-way both starts as well as ends at the via-node."))); 303 307 } 304 308 if (!issues.isEmpty()) { … … 327 331 328 332 if (!from.isFirstLastNode(via)) { 329 issues.add(Issue.newError(r, from, "The from-way does not start or end at the via-node.")); 333 issues.add(Issue.newError(r, from, tr("The from-way does not start or end at the via-node."))); 330 334 } 331 335 if (!to.isFirstLastNode(via)) { 332 issues.add(Issue.newError(r, to, "The to-way does not start or end at the via-node.")); 336 issues.add(Issue.newError(r, to, tr("The to-way does not start or end at the via-node."))); 333 337 } 334 338
Note:
See TracChangeset
for help on using the changeset viewer.