Skip to content

Commit

Permalink
Fixed minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
delas committed Apr 7, 2020
1 parent 96e1318 commit 97b2f4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libPlg/src/plg/utils/PlgConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class PlgConstants {
/**
* Current version of libPlg
*/
public static final String libPLG_VERSION = "2.0.5";
public static final String libPLG_VERSION = "2.0.6";

/**
* Signature of the libPlg (typically name and version number)
Expand Down
6 changes: 4 additions & 2 deletions plg/src/plg/gui/util/ImageUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
import javax.imageio.ImageIO;
import javax.swing.ImageIcon;

import plg.utils.Logger;

/**
* Collection of utilities methods to work with images.
*
Expand Down Expand Up @@ -51,8 +53,8 @@ public static ImageIcon loadImage(String imageFile, int width, int height) {
public static ImageIcon loadImage(String imageFile) {
try {
return new ImageIcon(ImageIO.read(ClassLoader.getSystemResource(imageFile)));
} catch (IOException e) {
e.printStackTrace();
} catch (Exception e) {
System.err.println("An error has been reported while loading a picture (but should be fine, `" + e.getMessage() + "').");
}
return null;
}
Expand Down

0 comments on commit 97b2f4a

Please sign in to comment.