Ignore:
Timestamp:
2009-01-17T19:58:59+01:00 (16 years ago)
Author:
ulfl
Message:

ooops, fix multipolygons I've broken in SVN1273

File:
1 edited

Legend:

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

    r1277 r1282  
    678678                    if(isPolygonVisible(pd.get()))
    679679                    {
    680                         drawArea(pd.way, (pd.way.selected || r.selected) ? selectedColor
     680                        drawAreaPolygon(pd.get(), (pd.way.selected || r.selected) ? selectedColor
    681681                        : ((AreaElemStyle)wayStyle).color);
    682682                        visible = true;
     
    773773        Polygon polygon = getPolygon(w);
    774774       
     775        // set the opacity (alpha) level of the filled polygon
     776        g.setColor(new Color(color.getRed(), color.getGreen(), color.getBlue(), fillAlpha));
     777        g.fillPolygon(polygon);
     778    }
     779
     780    protected void drawAreaPolygon(Polygon polygon, Color color)
     781    {
    775782        // set the opacity (alpha) level of the filled polygon
    776783        g.setColor(new Color(color.getRed(), color.getGreen(), color.getBlue(), fillAlpha));
Note: See TracChangeset for help on using the changeset viewer.