diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-07-07 13:33:38 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-07-08 12:04:51 +0200 |
commit | 5f11fd5eb7096d15f92abbb9d7d84d0c35eb8f53 (patch) | |
tree | 45850a97e5d251decba95c77a0b0cce2c967a29a /source/pdf/pdf-annot-edit.c | |
parent | e82910771b7896b0cfff98b04d2ffe0a56cae0b4 (diff) | |
download | mupdf-5f11fd5eb7096d15f92abbb9d7d84d0c35eb8f53.tar.xz |
Slim pdf_annot struct: remove cached pagerect field.
Diffstat (limited to 'source/pdf/pdf-annot-edit.c')
-rw-r--r-- | source/pdf/pdf-annot-edit.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source/pdf/pdf-annot-edit.c b/source/pdf/pdf-annot-edit.c index 4aa856b0..dc07cd7f 100644 --- a/source/pdf/pdf-annot-edit.c +++ b/source/pdf/pdf-annot-edit.c @@ -122,7 +122,6 @@ pdf_create_annot(fz_context *ctx, pdf_document *doc, pdf_page *page, fz_annot_ty annot = pdf_new_annot(ctx, page, &page_ctm, &inv_page_ctm); annot->rect = rect; - annot->pagerect = rect; annot->ap = NULL; annot->widget_type = PDF_WIDGET_TYPE_NOT_WIDGET; annot->annot_type = type; @@ -260,8 +259,6 @@ pdf_set_markup_annot_quadpoints(fz_context *ctx, pdf_document *doc, pdf_annot *a static void update_rect(fz_context *ctx, pdf_annot *annot) { pdf_to_rect(ctx, pdf_dict_get(ctx, annot->obj, PDF_NAME_Rect), &annot->rect); - annot->pagerect = annot->rect; - fz_transform_rect(&annot->pagerect, &annot->page_ctm); } void |