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