Changeset 9016 in josm for trunk/src


Ignore:
Timestamp:
2015-11-16T21:23:54+01:00 (9 years ago)
Author:
bastiK
Message:

mapcss: minor improvement for drawing of unclosed areas (see #12104)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java

    r9008 r9016  
    467467                    Shape clip = g.getClip();
    468468                    g.clip(area);
    469                     g.setStroke(new BasicStroke(2 * extent));
     469                    g.setStroke(new BasicStroke(2 * extent, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER));
    470470                    g.draw(area);
    471471                    g.setClip(clip);
     
    483483                } else {
    484484                    Shape clip = g.getClip();
    485                     BasicStroke stroke = new BasicStroke(2 * extent);
     485                    BasicStroke stroke = new BasicStroke(2 * extent, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER);
    486486                    g.clip(stroke.createStrokedShape(area));
    487487                    g.fill(area);
Note: See TracChangeset for help on using the changeset viewer.