From e8549b95dff600aa173384a8f7bdbf0871ba9d47 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 18 Jun 2011 23:07:14 +0200 Subject: Don't throw exceptions on very small window sizes git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@470 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/view/impl/ImageUtil.java | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.3