mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Fix for the case when TOC contains a link to external file: we should redraw the current page and not just quietly return from UniReader:goto().
This commit is contained in:
@@ -1483,6 +1483,8 @@ end
|
||||
-- change current page and cache next page after rendering
|
||||
function UniReader:goto(no, is_ignore_jump)
|
||||
if no < 1 or no > self.doc:getPages() then
|
||||
-- may be reached by following TOC entry pointing to external file.
|
||||
self:redrawCurrentPage()
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user