Changeset 12185 in josm


Ignore:
Timestamp:
2017-05-15T20:08:53+02:00 (8 years ago)
Author:
michael2402
Message:

Fix #12926: Draw the last arrow of the selected object every time

File:
1 edited

Legend:

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

    r12154 r12185  
    12411241                if (drawArrowHelper != null) {
    12421242                    boolean drawArrow;
    1243                     if (showHeadArrowOnly) {
    1244                         // always draw last arrow - no matter how short the segment is
    1245                         drawArrow = !it.hasNext();
    1246                     } else {
     1243                    // always draw last arrow - no matter how short the segment is
     1244                    drawArrow = !it.hasNext();
     1245                    if (!showHeadArrowOnly) {
    12471246                        // draw arrows in between only if there is enough space
    1248                         drawArrow = p1.distanceToInView(p2) > drawArrowHelper.getOnLineLength() * 1.3;
     1247                        drawArrow = drawArrow || p1.distanceToInView(p2) > drawArrowHelper.getOnLineLength() * 1.3;
    12491248                    }
    12501249                    if (drawArrow) {
Note: See TracChangeset for help on using the changeset viewer.