- Timestamp:
- 2016-10-18T13:17:57+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/draw/MapViewPath.java
r11144 r11145 203 203 private class ClampingPathVisitor extends MapPath2D { 204 204 private final MapViewRectangle clip; 205 private double stroke Offset;205 private double strokeProgress; 206 206 private final double strokeLength; 207 207 private MapViewPoint lastMoveTo; … … 212 212 ClampingPathVisitor(MapViewRectangle clip, double strokeOffset, double strokeLength) { 213 213 this.clip = clip; 214 this.stroke Offset = strokeOffset;214 this.strokeProgress = Math.min(strokeLength - strokeOffset, 0); 215 215 this.strokeLength = strokeLength; 216 216 } … … 269 269 cursorIsActive = exit.equals(next); 270 270 } 271 stroke Offset+= cursor.distanceToInView(next);271 strokeProgress += cursor.distanceToInView(next); 272 272 273 273 cursor = next; … … 282 282 283 283 double distance = Math.sqrt(distanceSq); 284 double offset = ((stroke Offset+ distance)) % strokeLength;284 double offset = ((strokeProgress + distance)) % strokeLength; 285 285 if (offset < 0.01) { 286 286 return entry;
Note:
See TracChangeset
for help on using the changeset viewer.