Skip to content

Commit

Permalink
Call check_pages when writing links (Issue #480)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Mar 24, 2022
1 parent 2e780dc commit 46c8ec2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions htmldoc/ps-pdf.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -3585,6 +3585,8 @@ pdf_write_names(FILE *out) /* I - Output file */
pdf_start_object(out);
float x, y;

check_pages(link->page);

x = 0.0f;
y = link->top + pages[link->page].bottom;
pspdf_transform_coords(pages + link->page, x, y);
Expand Down

0 comments on commit 46c8ec2

Please sign in to comment.