diff --git a/gui/src/org/pzgui/icon/ShapeIcon.java b/gui/src/org/pzgui/icon/ShapeIcon.java index ddf8319..aebf51b 100644 --- a/gui/src/org/pzgui/icon/ShapeIcon.java +++ b/gui/src/org/pzgui/icon/ShapeIcon.java @@ -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);