Use correct thumbnail for unthumbnailable images, see bug 5017

svn: r18029
This commit is contained in:
Michiel Nauta 2011-08-11 20:01:28 +00:00
parent fb0095ca72
commit 9ac8ef272b

View File

@ -342,5 +342,5 @@ def get_thumbnail_path(src_file, mtype=None, rectangle=None, size=SIZE_NORMAL):
if (not os.path.isfile(filename)) or (
os.path.getmtime(src_file) > os.path.getmtime(filename)):
if not __create_thumbnail_image(src_file, mtype, rectangle, size):
return os.path.join(const.IMAGE_DIR, "image-missing.png")
return os.path.join(const.IMAGE_DIR, "document.png")
return os.path.abspath(filename)