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 @@ class Document(QGraphicsScene):
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