summaryrefslogtreecommitdiff
path: root/apps/pdfshow.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2012-01-10 19:44:31 +0100
committerSebastian Rasmussen <sebras@gmail.com>2012-01-10 19:59:33 +0100
commit66c961010db971fc7446294938b38843456308bb (patch)
tree7c369b6cd6af029b3a381edcc98173ca94081a81 /apps/pdfshow.c
parent0230a0417212172c391483d054364fb081c79168 (diff)
downloadmupdf-66c961010db971fc7446294938b38843456308bb.tar.xz
Automatically load page tree when accessing a page/page count.
Diffstat (limited to 'apps/pdfshow.c')
-rw-r--r--apps/pdfshow.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/apps/pdfshow.c b/apps/pdfshow.c
index e10e5e08..300da9ca 100644
--- a/apps/pdfshow.c
+++ b/apps/pdfshow.c
@@ -46,9 +46,6 @@ static void showpagetree(void)
if (!xref)
fz_throw(ctx, "no file specified");
- if (!xref->page_len)
- pdf_load_page_tree(xref);
-
count = pdf_count_pages(xref);
for (i = 0; i < count; i++)
{