Changeset 3994 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint
- Timestamp:
- 2011-03-18T00:22:13+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/LineElemStyle.java
r3992 r3994 121 121 } 122 122 } 123 if (!hasPositive || dashes.length == 0) {123 if (!hasPositive || (dashes != null && dashes.length == 0)) { 124 124 dashes = null; 125 125 } … … 198 198 the way is tagged with a direction key 199 199 (even if the tag is negated as in oneway=false) or the way is selected */ 200 boolean showOrientation = !isModifier && selected&& !paintSettings.isUseRealWidth();200 boolean showOrientation = !isModifier && (selected || paintSettings.isShowDirectionArrow()) && !paintSettings.isUseRealWidth(); 201 201 boolean showOneway = !isModifier && !selected && 202 203 paintSettings.isShowDirectionArrow() && w.hasDirectionKeys();202 !paintSettings.isUseRealWidth() && 203 paintSettings.isShowOnewayArrow() && w.hasDirectionKeys(); 204 204 boolean onewayReversed = w.reversedDirection(); 205 205 /* head only takes over control if the option is true, … … 215 215 myWidth = line.getLineWidth(); 216 216 } 217 myLine = new BasicStroke(myWidth, line.getEndCap(), line.getLineJoin(), 217 myLine = new BasicStroke(myWidth, line.getEndCap(), line.getLineJoin(), 218 218 line.getMiterLimit(), line.getDashArray(), line.getDashPhase()); 219 219 if (dashesLine != null) { … … 259 259 final LineElemStyle other = (LineElemStyle) obj; 260 260 return equal(line, other.line) && 261 262 263 264 265 261 equal(color, other.color) && 262 equal(dashesLine, other.dashesLine) && 263 equal(dashesBackground, other.dashesBackground) && 264 equal(text, other.text) && 265 realWidth == other.realWidth; 266 266 } 267 267 … … 281 281 public String toString() { 282 282 return "LineElemStyle{" + super.toString() + "width=" + line.getLineWidth() + 283 284 285 286 283 " realWidth=" + realWidth + " color=" + Utils.toString(color) + 284 " dashed=" + Arrays.toString(line.getDashArray()) + 285 (line.getDashPhase() == 0f ? "" : " dashesOffses=" + line.getDashPhase()) + 286 " dashedColor=" + Utils.toString(dashesBackground) + '}'; 287 287 } 288 288 }
Note:
See TracChangeset
for help on using the changeset viewer.