mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +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:
parent
42d9583319
commit
dac88587bf
@ -1483,6 +1483,8 @@ end
|
|||||||
-- change current page and cache next page after rendering
|
-- change current page and cache next page after rendering
|
||||||
function UniReader:goto(no, is_ignore_jump)
|
function UniReader:goto(no, is_ignore_jump)
|
||||||
if no < 1 or no > self.doc:getPages() then
|
if no < 1 or no > self.doc:getPages() then
|
||||||
|
-- may be reached by following TOC entry pointing to external file.
|
||||||
|
self:redrawCurrentPage()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user