Fix garbled ImageWidget cache issues

Fixes #2805. Thanks to @poire-z, see https://github.com/koreader/koreader/issues/2805#issuecomment-296686695
This commit is contained in:
Frans de Jonge
2017-04-24 17:21:26 +02:00
committed by Qingping Hou
parent b3a93d1456
commit fa12f488e8

View File

@@ -263,7 +263,7 @@ function KoptInterface:getCoverPageImage(doc)
local zoom = math.min(screen_size.w / native_size.w, screen_size.h / native_size.h)
local tile = Document.renderPage(doc, 1, nil, zoom, 0, 1, 0)
if tile then
return tile.bb
return tile.bb:copy()
end
end