Image loader will give up if it failed to find image once

This commit is contained in:
Maxmtg
2013-03-19 09:44:47 +00:00
parent ecf41ea05d
commit 85beda72e1

View File

@@ -121,6 +121,7 @@ public class ImageCache {
boolean mayEnlarge = Singletons.getModel().getPreferences().getPrefBoolean(FPref.UI_SCALE_LARGER); boolean mayEnlarge = Singletons.getModel().getPreferences().getPrefBoolean(FPref.UI_SCALE_LARGER);
BufferedImage original = getImage(key); BufferedImage original = getImage(key);
if (null == original) { if (null == original) {
CACHE.put(key, null); // This instructs cache to give up finding a picture if it was not found once
return null; return null;
} }