From 1ef9dff0e7ad7112025efe273ae855f6d2ad5f36 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Thu, 9 Jul 2009 02:03:19 +0200 Subject: Parse page tree on-demand instead of parsing the entire tree after reading xref. --- apps/unix/x11pdf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'apps/unix') diff --git a/apps/unix/x11pdf.c b/apps/unix/x11pdf.c index e3bc4b72..3ae1d930 100644 --- a/apps/unix/x11pdf.c +++ b/apps/unix/x11pdf.c @@ -320,8 +320,7 @@ static void windrawpageno(pdfapp_t *app) { char s[100]; - int ret = snprintf(s, 100, "Page %d/%d", gapp.pageno, - pdf_getpagecount(gapp.pages)); + int ret = snprintf(s, 100, "Page %d/%d", gapp.pageno, gapp.pagecount); if (ret >= 0) { isshowingpage = 1; -- cgit v1.2.3