diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-07-07 14:50:16 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-07-08 17:21:23 +0200 |
commit | 9afbc5e8f030e749395548df891217c38aa1261e (patch) | |
tree | 27d5ee35475e47e9dc58330a0d5cdd65b91133f0 /source/pdf/pdf-form.c | |
parent | 8162e4840f052fd63b3c1e1437042f4378f3ee83 (diff) | |
download | mupdf-9afbc5e8f030e749395548df891217c38aa1261e.tar.xz |
Slim pdf_annot struct: remove cached page_ctm field.
Diffstat (limited to 'source/pdf/pdf-form.c')
-rw-r--r-- | source/pdf/pdf-form.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/pdf/pdf-form.c b/source/pdf/pdf-form.c index d29d7c41..65090a74 100644 --- a/source/pdf/pdf-form.c +++ b/source/pdf/pdf-form.c @@ -1168,11 +1168,7 @@ void pdf_field_set_text_color(fz_context *ctx, pdf_document *doc, pdf_obj *field fz_rect *pdf_bound_widget(fz_context *ctx, pdf_widget *widget, fz_rect *rect) { - pdf_annot *annot = (pdf_annot *)widget; - pdf_obj *obj = pdf_dict_get(ctx, annot->obj, PDF_NAME_Rect); - pdf_to_rect(ctx, obj, rect); - fz_transform_rect(rect, &annot->page_ctm); - return rect; + return pdf_bound_annot(ctx, (pdf_annot*)widget, rect); } char *pdf_text_widget_text(fz_context *ctx, pdf_document *doc, pdf_widget *tw) |