Changeset 2890 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2010-01-24T17:55:56+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/LineElemStyle.java
r2675 r2890 146 146 boolean showDirection = selected || ((!paintSettings.isUseRealWidth()) && (paintSettings.isShowDirectionArrow() 147 147 && (!paintSettings.isShowRelevantDirectionsOnly() || w.hasDirectionKeys()))); 148 boolean reversedDirection = w.reversedDirection(); 148 149 /* head only takes over control if the option is true, 149 150 the direction should be shown at all and not only because it's selected */ … … 189 190 if(!s.over) { 190 191 painter.drawWay(w, s.color != null && selected ? myColor: s.color, s.getWidth(myWidth), 191 s.getDashed(), s.dashedColor, false, false); 192 s.getDashed(), s.dashedColor, false, false, false); 192 193 } 193 194 } … … 195 196 196 197 /* draw the way */ 197 painter.drawWay(w, myColor, myWidth, dashed, dashedColor, showDirection, showOnlyHeadArrowOnly); 198 painter.drawWay(w, myColor, myWidth, dashed, dashedColor, showDirection, selected ? false : reversedDirection, showOnlyHeadArrowOnly); 198 199 199 200 /* draw overlays above the way */ … … 202 203 if(s.over) { 203 204 painter.drawWay(w, s.color != null && selected ? myColor : s.color, s.getWidth(myWidth), 204 s.getDashed(), s.dashedColor, false, false); 205 s.getDashed(), s.dashedColor, false, false, false); 205 206 } 206 207 }
Note:
See TracChangeset
for help on using the changeset viewer.
