Skip to content

Commit

Permalink
Fix condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Oct 31, 2018
1 parent 1ee71eb commit ce10c88
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/info/kriese/sopra/gui/SplashDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,15 @@ public void setMessage(String msg) {
*/
protected void updatePicture() {
// Get the icon corresponding to the image.
ImageIcon icon = createImageIcon("images/logo.png");
ImageIcon icon = createImageIcon("images/logo.png");
if (icon == null) {
this.pictureLabel.setText("Missing Image");
return;
}
Image im = icon.getImage();
im = im.getScaledInstance(200, 200, Image.SCALE_SMOOTH);

this.pictureLabel.setIcon(new ImageIcon(im));

if (icon == null)
this.pictureLabel.setText("Missing Image");
else
this.pictureLabel.setText(null);
//this.pictureLabel.setText(null);
}
}

0 comments on commit ce10c88

Please sign in to comment.