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 authored and Qingping Hou committed 2017-04-27 01:25:34 -07:00
1 parent b3a93d1456
commit fa12f488e8
1 file changed
+1 -1
+1 -1
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