summaryrefslogtreecommitdiff
path: root/src/cairo-pdf-interchange.c
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2017-08-20 20:09:02 +0930
committerAdrian Johnson <ajohnson@redneon.com>2017-08-20 20:09:02 +0930
commite3857c133f6403b94a49480ca0fad66876dbe609 (patch)
tree41e703118b4e80fdc4bba8853f5cd74c493248ef /src/cairo-pdf-interchange.c
parentbb4ab5a8be2f66bfc03716eb37b94ec186ab1e55 (diff)
downloadcairo-e3857c133f6403b94a49480ca0fad66876dbe609.tar.gz
pdf: link tags do not need to be leaf nodes in the document structure
Diffstat (limited to 'src/cairo-pdf-interchange.c')
-rw-r--r--src/cairo-pdf-interchange.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/cairo-pdf-interchange.c b/src/cairo-pdf-interchange.c
index bac62d530..3d81c771a 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 &&