diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-07-05 14:44:48 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-07-06 13:54:49 +0200 |
commit | 7cb9579804102ea39ef76d237144b57331766df1 (patch) | |
tree | bc485caac64ce1b4e36018075ea51064c3a0dd81 /source/pdf/pdf-appearance.c | |
parent | cd2ae94337aa32e54f6a89945c2069024aad6d12 (diff) | |
download | mupdf-7cb9579804102ea39ef76d237144b57331766df1.tar.xz |
Add pdf_dict_get_rect and pdf_dict_get_matrix helpers.
Diffstat (limited to 'source/pdf/pdf-appearance.c')
-rw-r--r-- | source/pdf/pdf-appearance.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/pdf/pdf-appearance.c b/source/pdf/pdf-appearance.c index 1bf0fd33..a23bbaf1 100644 --- a/source/pdf/pdf-appearance.c +++ b/source/pdf/pdf-appearance.c @@ -1213,7 +1213,7 @@ void pdf_update_signature_appearance(fz_context *ctx, pdf_annot *annot, const ch fz_rect rect; float w, h, size, name_w; - rect = pdf_to_rect(ctx, pdf_dict_get(ctx, annot->obj, PDF_NAME(Rect))); + rect = pdf_dict_get_rect(ctx, annot->obj, PDF_NAME(Rect)); fz_var(helv); fz_var(zadb); @@ -1334,7 +1334,7 @@ void pdf_update_appearance(fz_context *ctx, pdf_annot *annot) fz_try(ctx) { - rect = pdf_to_rect(ctx, pdf_dict_get(ctx, annot->obj, PDF_NAME(Rect))); + rect = pdf_dict_get_rect(ctx, annot->obj, PDF_NAME(Rect)); pdf_write_appearance(ctx, annot, buf, &rect, &bbox, &matrix, &res); pdf_dict_put_rect(ctx, annot->obj, PDF_NAME(Rect), rect); |