[card.plugin] Displaying JXPanel in case there is no image.

This commit is contained in:
magenoxx 2010-11-19 15:10:04 +00:00
parent 502b21fddb
commit 3a0fd73854
4 changed files with 40 additions and 2 deletions

View file

@ -144,6 +144,10 @@ public class ImageCache {
* Returns an image scaled to the size given
*/
public static BufferedImage getNormalSizeImage(BufferedImage original) {
if (original == null) {
return null;
}
int srcWidth = original.getWidth();
int srcHeight = original.getHeight();