From 7cb9579804102ea39ef76d237144b57331766df1 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 5 Jul 2018 14:44:48 +0200 Subject: Add pdf_dict_get_rect and pdf_dict_get_matrix helpers. --- source/pdf/pdf-signature.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/pdf/pdf-signature.c') diff --git a/source/pdf/pdf-signature.c b/source/pdf/pdf-signature.c index aaa2c5e1..213c33e1 100644 --- a/source/pdf/pdf-signature.c +++ b/source/pdf/pdf-signature.c @@ -67,9 +67,9 @@ void pdf_sign_signature(fz_context *ctx, pdf_document *doc, pdf_widget *widget, { const char *dn_str; pdf_obj *wobj = ((pdf_annot *)widget)->obj; - fz_rect rect = fz_empty_rect; + fz_rect rect; - rect = pdf_to_rect(ctx, pdf_dict_get(ctx, wobj, PDF_NAME(Rect))); + rect = pdf_dict_get_rect(ctx, wobj, PDF_NAME(Rect)); /* Create an appearance stream only if the signature is intended to be visible */ if (!fz_is_empty_rect(rect)) -- cgit v1.2.3