Use correct thumbnail for unthumbnailable images, see bug 5017
svn: r18028
This commit is contained in:
parent
199786a53c
commit
be5cd168a7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user