Ticket #4909: JOSM.HeadArrow_2.patch

File JOSM.HeadArrow_2.patch, 802 bytes (added by robome, 16 years ago)

Patch to correct the feature

  • src/org/openstreetmap/josm/gui/mappaint/LineElemStyle.java

     
    148148        boolean reversedDirection = w.reversedDirection();
    149149        /* head only takes over control if the option is true,
    150150        the direction should be shown at all and not only because it's selected */
    151         boolean showOnlyHeadArrowOnly = showDirection && selected && paintSettings.isShowHeadArrowOnly();
     151        boolean showOnlyHeadArrowOnly = showDirection && !selected && paintSettings.isShowHeadArrowOnly();
    152152        Node lastN;
    153153
    154154        Color myColor = color;