Changeset 12450 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2017-07-03T00:44:07+02:00 (7 years ago)
Author:
bastiK
Message:

revert [12399], fixes #14980, reopens #14926

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java

    r12376 r12450  
    13011301
    13021302                    while (dist < segmentLength) {
    1303                         appenOnewayPath(onewayReversed, start, nx, ny, dist, 3d, onewayArrowsCasing);
    1304                         appenOnewayPath(onewayReversed, start, nx, ny, dist, 2d, onewayArrows);
     1303                        appendOnewayPath(onewayReversed, start, nx, ny, dist, 3d, onewayArrowsCasing);
     1304                        appendOnewayPath(onewayReversed, start, nx, ny, dist, 2d, onewayArrows);
    13051305                        dist += interval;
    13061306                    }
     
    13181318    }
    13191319
    1320     private static void appenOnewayPath(boolean onewayReversed, MapViewPoint p1, double nx, double ny, double dist,
     1320    private static void appendOnewayPath(boolean onewayReversed, MapViewPoint p1, double nx, double ny, double dist,
    13211321            double onewaySize, Path2D onewayPath) {
    13221322        // scale such that border is 1 px
  • trunk/src/org/openstreetmap/josm/gui/draw/MapViewPath.java

    r12399 r12450  
    406406        ClampingPathVisitor(MapViewRectangle clip, double strokeOffset, double strokeLength, PathSegmentConsumer consumer) {
    407407            this.clip = clip;
    408             this.strokeProgress = Math.max(strokeLength - strokeOffset, 0);
     408            this.strokeProgress = Math.min(strokeLength - strokeOffset, 0);
    409409            this.strokeLength = strokeLength;
    410410            this.consumer = consumer;
Note: See TracChangeset for help on using the changeset viewer.