Skip to content

Commit

Permalink
fitz/helper-select.i: cope with mupdf master removal of pdf_lookup_an…
Browse files Browse the repository at this point in the history
…chor().
  • Loading branch information
julian-smith-artifex-com committed Jul 11, 2023
1 parent 6055efa commit 88f4cea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fitz/helper-select.i
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,10 @@ void remove_dest_range(fz_context *ctx, pdf_document *pdf, PyObject *numbers)
pno = pdf_lookup_page_number(ctx, pdf, target);
}
else if (pdf_is_string(ctx, dest)) {
pno = pdf_lookup_anchor(ctx, pdf,
fz_location location = fz_resolve_link(ctx, &pdf->super,
pdf_to_text_string(ctx, dest),
NULL, NULL);
pno = location.page;
}
if (pno < 0) { // page number lookup did not work
continue;
Expand Down

0 comments on commit 88f4cea

Please sign in to comment.