mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Viewer: Fix jump to previous section not working when viewer is on last section
This commit is contained in:
parent
f6944a9407
commit
a7c28570ec
@ -58,6 +58,8 @@ def get_border_nodes(toc, id_map):
|
||||
after = node
|
||||
return True
|
||||
)
|
||||
if not before and prev is not None:
|
||||
before = prev
|
||||
return before, after
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user