mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
d5096c09b6
commit
2c83c56d96
@ -343,7 +343,7 @@ class WebPage(QWebPage):
|
||||
def go_to_line(self, lnum):
|
||||
try:
|
||||
lnum = find_le(self.line_numbers, lnum)
|
||||
except ValueError:
|
||||
except IndexError:
|
||||
return
|
||||
self.mainFrame().evaluateJavaScript(
|
||||
'window.calibre_preview_integration.go_to_line(%d)' % lnum)
|
||||
|
Loading…
x
Reference in New Issue
Block a user