Use correct thumbnail for unthumbnailable images, see bug 5017

svn: r18028
This commit is contained in:
Michiel Nauta 2011-08-11 20:00:46 +00:00
parent 199786a53c
commit be5cd168a7

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)