Use correct thumbnail for unthumbnailable images, see bug 5017
svn: r18029
This commit is contained in:
parent
fb0095ca72
commit
9ac8ef272b
@ -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