[fix] PdfDocument: Hash collision (#5337)

A typo introduced in <https://github.com/koreader/koreader/pull/5282>.

This might resolve <https://github.com/koreader/koreader/issues/5323>, <https://github.com/koreader/koreader/issues/5327>.
This commit is contained in:
Frans de Jonge
2019-09-07 17:15:12 +02:00
committed by GitHub
parent a3acc667d6
commit 59355200dc

View File

@@ -154,7 +154,7 @@ function PdfDocument:getUsedBBox(pageno)
end
function PdfDocument:getPageLinks(pageno)
local hash = "pgubbox|"..self.file.."|"..self.reflowable_font_size.."|"..pageno
local hash = "pglinks|"..self.file.."|"..self.reflowable_font_size.."|"..pageno
local cached = Cache:check(hash)
if cached then
return cached.links