Fixed image not correctly resized for big card component.

This commit is contained in:
magenoxx 2011-10-16 02:43:43 +04:00
parent ef1fa35555
commit e2049409ab
2 changed files with 8 additions and 9 deletions

View file

@ -277,8 +277,7 @@ public class BigCard extends JComponent {
public void setDefaultImage() {
bigImage = ImageHelper.getImageFromResources("/empty.png");
// XXX: scaled to fit width
bigImage = ImageHelper.getResizedImage((BufferedImage) bigImage, getWidth(), getHeight());
bigImage = ImageHelper.getResizedImage((BufferedImage) bigImage, getWidth(), getHeight());
}
// Variables declaration - do not modify//GEN-BEGIN:variables