This commit is contained in:
Kovid Goyal 2019-09-08 20:11:31 +05:30
parent 16b7f100ed
commit b3e57ddfae
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -477,6 +477,7 @@ def chapter_page(self, num):
return chapter, chapter.page(num)
def show_page(self, num):
num = int(num)
if num < 1 or num > self.num_of_pages or num == self.current_page:
return
odd = num%2 == 1