2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00

bugfix: refresh cache when switching between standard reader and

koptreader
This commit is contained in:
chrox 2012-10-22 01:26:10 +08:00
parent e42403bb85
commit 46b6000cb1

View File

@ -65,7 +65,7 @@ function KOPTReader:drawOrCache(no, preCache)
local dc = self:setzoom(page, preCache) local dc = self:setzoom(page, preCache)
-- check if we have relevant cache contents -- check if we have relevant cache contents
local pagehash = no..'_'..self.globalzoom..'_'..self.globalrotate..'_'..self.globalgamma local pagehash = no..'_'..self.globalzoom..'_'..self.globalrotate..'_'..self.globalgamma..'K'
Debug('page hash', pagehash) Debug('page hash', pagehash)
if self.cache[pagehash] ~= nil then if self.cache[pagehash] ~= nil then
-- we have something in cache -- we have something in cache