From 5fe1e951fc4292e7f4572369cefdb133bb8e9431 Mon Sep 17 00:00:00 2001 From: malc Date: Wed, 23 Dec 2015 15:34:39 +0300 Subject: [PATCH] Use proper matrix for slink bbox calculation Otherwise hints are broken when page was trimmed. --- link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/link.c b/link.c index 31407ff..4ad1c9e 100644 --- a/link.c +++ b/link.c @@ -2323,7 +2323,7 @@ static void ensureslinks (struct page *page) if (page->slinks) return; links = fz_load_links (state.ctx, page->fzpage); - ctm = state.pagedims[page->pdimno].ctm; + ctm = pagectm (page); count = page->annotcount; for (link = links; link; link = link->next) { -- 2.11.4.GIT