Changeset 1568 in osm for utils/josm/plugins


Ignore:
Timestamp:
2006-11-12T11:00:49+01:00 (18 years ago)
Author:
nick
Message:

Filling of areas in mappaint now controlled by mappaint.fillareas preference setting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/josm/plugins/mappaint/src/mappaint/MapPaintVisitor.java

    r1565 r1568  
    117117                                                getPreferencesColor("selected", Color.YELLOW) : colour);
    118118
    119                 g.fillPolygon(polygon);
     119                if(Main.pref.getBoolean("mappaint.fillareas", true))
     120                        g.fillPolygon(polygon);
     121                else
     122                {
     123                        Graphics2D g2d = (Graphics2D)g;
     124                        g2d.setStroke(new BasicStroke(2));
     125                        g.drawPolygon(polygon);
     126                        g2d.setStroke(new BasicStroke(1));
     127                }
    120128        }
    121129
Note: See TracChangeset for help on using the changeset viewer.