- Timestamp:
- 2021-07-10T22:12:33+02:00 (3 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/IWaySegment.java
r17902 r17986 23 23 24 24 /** 25 * The way. 25 * Returns the way. 26 * @return the way 26 27 */ 27 28 public W getWay() { … … 30 31 31 32 /** 32 * The index of the first of the 2 nodes in the way. 33 * Returns the index of the first of the 2 nodes in the way. 34 * @return index of the first of the 2 nodes in the way 33 35 * @see #getUpperIndex() 34 36 * @see #getFirstNode() … … 39 41 40 42 /** 41 * The index of the second of the 2 nodes in the way. 43 * Returns the index of the second of the 2 nodes in the way. 44 * @return the index of the second of the 2 nodes in the way 42 45 * @see #getLowerIndex() 43 46 * @see #getSecondNode() … … 62 65 63 66 /** 67 * Determines if the segment is usable (node not deleted). 68 * @return {@code true} if the segment is usable 69 * @since 17986 70 */ 71 public boolean isUsable() { 72 return getUpperIndex() < way.getNodesCount(); 73 } 74 75 /** 64 76 * Returns the first node of the way segment. 65 77 * @return the first node … … 79 91 /** 80 92 * Determines and returns the way segment for the given way and node pair. 93 * @param <N> type of node 94 * @param <W> type of way 81 95 * @param way way 82 96 * @param first first node -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r17896 r17986 1291 1291 MapViewPath highlightSegs = null; 1292 1292 for (WaySegment ws : highlightWaySegments) { 1293 if (ws.getWay() != way || ws.getLowerIndex() < offset ) {1293 if (ws.getWay() != way || ws.getLowerIndex() < offset || !ws.isUsable()) { 1294 1294 continue; 1295 1295 }
Note:
See TracChangeset
for help on using the changeset viewer.