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/fitz/stext-output.c | |
parent | ea7403b4c172338dfe7f371302f82859921e60af (diff) | |
download | mupdf-f40106ac6b7367292432ee7af61608548d490e8c.tar.xz |
Pass rects by value: device and document interface.
Diffstat (limited to 'source/fitz/stext-output.c')
-rw-r--r-- | source/fitz/stext-output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/stext-output.c b/source/fitz/stext-output.c index d949f2d8..154dfedb 100644 --- a/source/fitz/stext-output.c +++ b/source/fitz/stext-output.c @@ -455,7 +455,7 @@ struct fz_text_writer_s }; static fz_device * -text_begin_page(fz_context *ctx, fz_document_writer *wri_, const fz_rect *mediabox) +text_begin_page(fz_context *ctx, fz_document_writer *wri_, fz_rect mediabox) { fz_text_writer *wri = (fz_text_writer*)wri_; @@ -465,7 +465,7 @@ text_begin_page(fz_context *ctx, fz_document_writer *wri_, const fz_rect *mediab wri->page = NULL; } - wri->page = fz_new_stext_page(ctx, *mediabox); + wri->page = fz_new_stext_page(ctx, mediabox); return fz_new_stext_device(ctx, wri->page, &wri->opts); } |