From 80a4b2ae6d04fa95182c4eaa2ce5cdd0712a6b87 Mon Sep 17 00:00:00 2001 From: malc Date: Tue, 20 Jul 2010 20:02:53 +0400 Subject: [PATCH] Use pdf_getpageref instead of touching xref directly --- link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/link.c b/link.c index 63562d4..5c83ccd 100644 --- a/link.c +++ b/link.c @@ -487,7 +487,7 @@ static void initpdims (void) } rotate += state.rotate; - state.pagetbl[pageno] = fz_tonum (state.xref->pagerefs[pageno]); + state.pagetbl[pageno] = fz_tonum (pdf_getpageref (state.xref, pageno)); p = &state.pagedims[state.pagedimcount - 1]; if ((state.pagedimcount == 0) || (p->rotate != rotate || memcmp (&p->box, &box, sizeof (box)))) { -- 2.11.4.GIT