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
This commit is contained in:
Matthias Schiffer 2011-06-18 23:07:14 +02:00
parent 92bea55251
commit e8549b95df

View file

@ -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);