diff options
author | Paul Gardiner <paul@glidos.net> | 2012-06-13 15:14:12 +0100 |
---|---|---|
committer | Paul Gardiner <paul@glidos.net> | 2012-06-13 15:14:12 +0100 |
commit | 4ef5e5861f9e3ca3b906c87bc2d08e057ec7e9cf (patch) | |
tree | 52531b848ae87f2feb4805bcb106cf627b020db8 /pdf/pdf_form.c | |
parent | e6df95d476f193c7ef20c35fd4d924f788daf764 (diff) | |
parent | e5998e33587f2eaa1fb1c82aad16496018058128 (diff) | |
download | mupdf-4ef5e5861f9e3ca3b906c87bc2d08e057ec7e9cf.tar.xz |
Merge branch 'master' into forms
Diffstat (limited to 'pdf/pdf_form.c')
-rw-r--r-- | pdf/pdf_form.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pdf/pdf_form.c b/pdf/pdf_form.c index 25053186..931a1dd4 100644 --- a/pdf/pdf_form.c +++ b/pdf/pdf_form.c @@ -910,7 +910,7 @@ static void update_marked_content(pdf_document *doc, pdf_xobject *form, fz_buffe } /* Use newbuf in place of the existing appearance stream */ - pdf_xobject_set_contents(doc, form, newbuf); + pdf_update_xobject_contents(doc, form, newbuf); } fz_always(ctx) { @@ -1105,7 +1105,7 @@ static void synthesize_text_widget(pdf_document *doc, pdf_obj *obj) form = pdf_load_xobject(doc, formobj); fzbuf = fz_new_buffer(ctx, 0); fz_buffer_printf(ctx, fzbuf, "/Tx BMC EMC"); - pdf_xobject_set_contents(doc, form, fzbuf); + pdf_update_xobject_contents(doc, form, fzbuf); ap = pdf_new_dict(ctx, 1); pdf_dict_puts(ap, "N", formobj); @@ -1331,7 +1331,7 @@ static void update_pushbutton_widget(pdf_document *doc, pdf_obj *obj) fzbuf_print_text(ctx, fzbuf, &clip, &font_rec, &mat, text); } - pdf_xobject_set_contents(doc, form, fzbuf); + pdf_update_xobject_contents(doc, form, fzbuf); } fz_always(ctx) { |