Changeset 32819 in osm for applications/editors/josm/plugins/pt_assistant
- Timestamp:
- 2016-08-16T02:58:05+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/data/PTRouteDataManager.java
r32747 r32819 397 397 return null; 398 398 } 399 400 /** 401 * Returns the last way of this route 402 * @return 403 */ 404 public Way getLastWay() { 405 PTWay lastPTWay = this.ptways.get(ptways.size()-1); 406 if (lastPTWay == null) { 407 return null; 408 } 409 return lastPTWay.getWays().get(lastPTWay.getWays().size()-1); 410 } 399 411 400 412 } -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/SegmentChecker.java
r32806 r32819 263 263 Way startWay = assigner.get(startStop); 264 264 Way endWay = assigner.get(endStop); 265 if (startWay == null || endWay == null) { 265 if (startWay == null || endWay == null || (startWay == endWay && startWay == manager.getLastWay())) { 266 266 continue; 267 267 }
Note:
See TracChangeset
for help on using the changeset viewer.