summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-06-18 23:07:14 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-06-18 23:07:14 +0200
commite8549b95dff600aa173384a8f7bdbf0871ba9d47 (patch)
tree899606b73e6d750864c5391c9732c90d542104b6 /src
parent92bea552513a449adf940559fe6b8ff34b6d53d2 (diff)
downloadJRummikub-e8549b95dff600aa173384a8f7bdbf0871ba9d47.tar
JRummikub-e8549b95dff600aa173384a8f7bdbf0871ba9d47.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/jrummikub/view/impl/ImageUtil.java2
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);