Changeset 2675 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyleHandler.java
- Timestamp:
- 2009-12-23T21:22:35+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyleHandler.java
r2659 r2675 84 84 if(val.startsWith("+")) 85 85 { 86 line. width =Integer.parseInt(val.substring(1));86 line.setWidth(Integer.parseInt(val.substring(1))); 87 87 line.widthMode = LineElemStyle.WidthMode.OFFSET; 88 88 } 89 89 else if(val.startsWith("-")) 90 90 { 91 line. width =Integer.parseInt(val);91 line.setWidth(Integer.parseInt(val)); 92 92 line.widthMode = LineElemStyle.WidthMode.OFFSET; 93 93 } 94 94 else if(val.endsWith("%")) 95 95 { 96 line. width =Integer.parseInt(val.substring(0, val.length()-1));96 line.setWidth(Integer.parseInt(val.substring(0, val.length()-1))); 97 97 line.widthMode = LineElemStyle.WidthMode.PERCENT; 98 98 } else { 99 line. width =Integer.parseInt(val);99 line.setWidth(Integer.parseInt(val)); 100 100 } 101 101 }
Note:
See TracChangeset
for help on using the changeset viewer.
