From b3e57ddfae00add0edf7c981a7dce90475d38bb6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 8 Sep 2019 20:11:31 +0530 Subject: [PATCH] ... --- src/calibre/gui2/lrf_renderer/document.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/lrf_renderer/document.py b/src/calibre/gui2/lrf_renderer/document.py index 4719d688de..653f38866c 100644 --- a/src/calibre/gui2/lrf_renderer/document.py +++ b/src/calibre/gui2/lrf_renderer/document.py @@ -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