From 14a052d269e6a72890bb6762c093ef5f7a375b78 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 7 Jul 2016 15:34:04 +0200 Subject: Slim pdf_xobject struct: remove cached bbox field. --- source/pdf/pdf-annot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/pdf/pdf-annot.c') diff --git a/source/pdf/pdf-annot.c b/source/pdf/pdf-annot.c index b456f2b0..1f6e3c5e 100644 --- a/source/pdf/pdf-annot.c +++ b/source/pdf/pdf-annot.c @@ -406,11 +406,12 @@ pdf_drop_annots(fz_context *ctx, pdf_annot *annot) void pdf_annot_transform(fz_context *ctx, pdf_annot *annot, fz_matrix *annot_ctm) { - fz_rect bbox = annot->ap->bbox; + fz_rect bbox; fz_rect rect; float w, h, x, y; pdf_to_rect(ctx, pdf_dict_get(ctx, annot->obj, PDF_NAME_Rect), &rect); + pdf_xobject_bbox(ctx, annot->ap, &bbox); fz_transform_rect(&bbox, &annot->ap->matrix); if (bbox.x1 == bbox.x0) -- cgit v1.2.3