Skip to content

Commit

Permalink
ShapeIcon now permits an empty (null) fill
Browse files Browse the repository at this point in the history
  • Loading branch information
dound committed Aug 6, 2009
1 parent 9f4e031 commit 6c2e072
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gui/src/org/pzgui/icon/ShapeIcon.java
Expand Up @@ -70,8 +70,10 @@ public static void draw( Graphics2D gfx, Shape s, Paint fill, Paint outline, int
int yC = y - s.getBounds().height / 2;
gfx.translate(xC, yC);

gfx.setPaint(fill);
gfx.fill(s);
if(fill != null) {
gfx.setPaint(fill);
gfx.fill(s);
}

if( outline != null ) {
gfx.setPaint(outline);
Expand Down

0 comments on commit 6c2e072

Please sign in to comment.