diff options
Diffstat (limited to 'src/jrummikub/view/impl')
-rw-r--r-- | src/jrummikub/view/impl/ImageUtil.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jrummikub/view/impl/ImageUtil.java b/src/jrummikub/view/impl/ImageUtil.java index 6af816e..e3b38eb 100644 --- a/src/jrummikub/view/impl/ImageUtil.java +++ b/src/jrummikub/view/impl/ImageUtil.java @@ -25,6 +25,8 @@ class ImageUtil { } static ImageIcon createPauseIcon(int size) { + size = Math.max(size, 1); + BufferedImage image = new BufferedImage(size, size, BufferedImage.TYPE_INT_ARGB); |