summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-appearance.c
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 /source/pdf/pdf-appearance.c
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 'source/pdf/pdf-appearance.c')
-rw-r--r--source/pdf/pdf-appearance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-appearance.c b/source/pdf/pdf-appearance.c
index 45d81c63..122f36ac 100644
--- a/source/pdf/pdf-appearance.c
+++ b/source/pdf/pdf-appearance.c
@@ -1617,7 +1617,7 @@ void pdf_set_annot_appearance(fz_context *ctx, pdf_document *doc, pdf_annot *ann
contents = fz_new_buffer(ctx, 0);
- dev = pdf_new_pdf_device(ctx, doc, &fz_identity, &trect, contents, resources);
+ dev = pdf_new_pdf_device(ctx, doc, &fz_identity, &trect, resources, contents);
fz_run_display_list(ctx, disp_list, dev, &ctm, &fz_infinite_rect, NULL);
fz_drop_device(ctx, dev);