Skip to content

Commit

Permalink
Fixed utils.do_links() crash.
Browse files Browse the repository at this point in the history
Follow up to 2067826.
Regression in bde7550.
  • Loading branch information
felixxm authored and julian-smith-artifex-com committed May 22, 2024
1 parent b4068db commit 03a802d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1533,7 +1533,7 @@ def cre_annot(lnk, xref_dst, pno_src, ctm):
pnt = lnk.get("to", pymupdf.Point(0, 0)) # destination point
if type(pnt) is not pymupdf.Point:
pnt = pymupdf.Point(0, 0)
annot = txt % (
annot = txt(
lnk["page"],
pnt.x,
pnt.y,
Expand Down

0 comments on commit 03a802d

Please sign in to comment.