[cairo-commit] src/cairo-pdf-interchange.c
Adrian Johnson
ajohnson at kemper.freedesktop.org
Sun Aug 20 10:40:54 UTC 2017
src/cairo-pdf-interchange.c | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
New commits:
commit e3857c133f6403b94a49480ca0fad66876dbe609
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Sun Aug 20 20:09:02 2017 +0930
pdf: link tags do not need to be leaf nodes in the document structure
diff --git a/src/cairo-pdf-interchange.c b/src/cairo-pdf-interchange.c
index bac62d53..3d81c771 100644
--- a/src/cairo-pdf-interchange.c
+++ b/src/cairo-pdf-interchange.c
@@ -238,16 +238,7 @@ cairo_pdf_interchange_write_annot (cairo_pdf_surface_t *surface,
cairo_pdf_interchange_t *ic = &surface->interchange;
int sp;
char *dest = NULL;
- int i, num_rects, num_mcid;
- struct page_mcid *mcid_elem;
-
- num_mcid = _cairo_array_num_elements (&node->mcid);
- if (num_mcid == 0 )
- return status;
-
- mcid_elem = _cairo_array_index (&node->mcid, 0);
- if (mcid_elem->page != ic->annot_page)
- return status;
+ int i, num_rects;
num_rects = _cairo_array_num_elements (&node->annot.link_attrs.rects);
if (strcmp (node->name, CAIRO_TAG_LINK) == 0 &&
More information about the cairo-commit
mailing list