mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
...
This commit is contained in:
parent
16b7f100ed
commit
b3e57ddfae
@ -477,6 +477,7 @@ class Document(QGraphicsScene):
|
|||||||
return chapter, chapter.page(num)
|
return chapter, chapter.page(num)
|
||||||
|
|
||||||
def show_page(self, num):
|
def show_page(self, num):
|
||||||
|
num = int(num)
|
||||||
if num < 1 or num > self.num_of_pages or num == self.current_page:
|
if num < 1 or num > self.num_of_pages or num == self.current_page:
|
||||||
return
|
return
|
||||||
odd = num%2 == 1
|
odd = num%2 == 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user