summaryrefslogtreecommitdiff
path: root/platform/x11
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-04-25 15:35:32 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-04-26 15:12:57 +0200
commitc304a128c51939dd507b2cb87c89daf56a659388 (patch)
treeb9d5b78cf6e6acb1466c9061191c4ecdea986df6 /platform/x11
parent34bf864107a499d55383ad5709082dbc2e2864df (diff)
downloadmupdf-c304a128c51939dd507b2cb87c89daf56a659388.tar.xz
Change order of arguments to pdf_add_page etc.
Resources are defined before they are used; so it's only logical to have the resource dictionary before the content buffer in the argument list.
Diffstat (limited to 'platform/x11')
-rw-r--r--platform/x11/pdfapp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c
index 77b6244a..75b0ce0d 100644
--- a/platform/x11/pdfapp.c
+++ b/platform/x11/pdfapp.c
@@ -254,7 +254,7 @@ static int make_fake_doc(pdfapp_t *app)
/* Create enough copies of our blank(ish) page so that the
* page number is preserved if and when a subsequent load
* works. */
- page_obj = pdf_add_page(ctx, pdf, &mediabox, 0, contents, NULL);
+ page_obj = pdf_add_page(ctx, pdf, &mediabox, 0, NULL, contents);
for (i = 0; i < app->pagecount; i++)
pdf_insert_page(ctx, pdf, -1, page_obj);
pdf_drop_obj(ctx, page_obj);