diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-06-29 17:26:27 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-07-05 15:32:34 +0200 |
commit | f40106ac6b7367292432ee7af61608548d490e8c (patch) | |
tree | 3b20165e215e76e3cca40e370e73482d9efdc8fc /source/pdf/pdf-write.c | |
parent | ea7403b4c172338dfe7f371302f82859921e60af (diff) | |
download | mupdf-f40106ac6b7367292432ee7af61608548d490e8c.tar.xz |
Pass rects by value: device and document interface.
Diffstat (limited to 'source/pdf/pdf-write.c')
-rw-r--r-- | source/pdf/pdf-write.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/pdf/pdf-write.c b/source/pdf/pdf-write.c index 63863104..f1f49299 100644 --- a/source/pdf/pdf-write.c +++ b/source/pdf/pdf-write.c @@ -3286,11 +3286,11 @@ struct pdf_writer_s }; static fz_device * -pdf_writer_begin_page(fz_context *ctx, fz_document_writer *wri_, const fz_rect *mediabox) +pdf_writer_begin_page(fz_context *ctx, fz_document_writer *wri_, fz_rect mediabox) { pdf_writer *wri = (pdf_writer*)wri_; - wri->mediabox = *mediabox; - return pdf_page_write(ctx, wri->pdf, &wri->mediabox, &wri->resources, &wri->contents); + wri->mediabox = mediabox; + return pdf_page_write(ctx, wri->pdf, wri->mediabox, &wri->resources, &wri->contents); } static void |