Ignore:
Timestamp:
2009-12-23T21:22:35+01:00 (16 years ago)
Author:
jttt
Message:

MapPaintVisitor - delegate drawing to styles, MapPaintVisitor should only select correct style and then let primitives draw in correct order. (not finished yet)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyleHandler.java

    r2659 r2675  
    8484                if(val.startsWith("+"))
    8585                {
    86                     line.width = Integer.parseInt(val.substring(1));
     86                    line.setWidth(Integer.parseInt(val.substring(1)));
    8787                    line.widthMode = LineElemStyle.WidthMode.OFFSET;
    8888                }
    8989                else if(val.startsWith("-"))
    9090                {
    91                     line.width = Integer.parseInt(val);
     91                    line.setWidth(Integer.parseInt(val));
    9292                    line.widthMode = LineElemStyle.WidthMode.OFFSET;
    9393                }
    9494                else if(val.endsWith("%"))
    9595                {
    96                     line.width = Integer.parseInt(val.substring(0, val.length()-1));
     96                    line.setWidth(Integer.parseInt(val.substring(0, val.length()-1)));
    9797                    line.widthMode = LineElemStyle.WidthMode.PERCENT;
    9898                } else {
    99                     line.width = Integer.parseInt(val);
     99                    line.setWidth(Integer.parseInt(val));
    100100                }
    101101            }
Note: See TracChangeset for help on using the changeset viewer.