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:
parent
92bea55251
commit
e8549b95df
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Reference in a new issue