fixBugs finding

fm.equals(format) breaks equals contract

Signed-off-by: Daan Hoogland <daan@onecht.net>
This commit is contained in:
Ian Southam 2014-02-05 18:02:34 +01:00 committed by Daan Hoogland
parent 13e0f293ed
commit cecb216caa

View File

@ -36,7 +36,7 @@ public class ImageFormatHelper {
public static ImageFormat getFormat(String format) {
for (ImageFormat fm : formats) {
if (fm.equals(format)) {
if (fm.toString().equals(format)) {
return fm;
}
}