mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1539120 [HTMLZ to PDF crash](https://bugs.launchpad.net/calibre/+bug/1539120)
This commit is contained in:
parent
4fbd66561e
commit
7c4a916d59
@ -16,7 +16,7 @@ from calibre.ebooks.pdf.render.common import Array, Name, Dictionary, String, UT
|
||||
class Destination(Array):
|
||||
|
||||
def __init__(self, start_page, pos, get_pageref):
|
||||
pnum = start_page + pos['column']
|
||||
pnum = start_page + max(0, pos['column'])
|
||||
try:
|
||||
pref = get_pageref(pnum)
|
||||
except IndexError:
|
||||
|
Loading…
x
Reference in New Issue
Block a user