diff --git a/src/cairo-pdf-interchange.c b/src/cairo-pdf-interchange.c index 434486cc9..5cc10eb0b 100644 --- a/src/cairo-pdf-interchange.c +++ b/src/cairo-pdf-interchange.c @@ -1380,7 +1380,8 @@ _cairo_pdf_interchange_write_document_objects (cairo_pdf_surface_t *surface) cairo_tag_stack_structure_type_t tag_type; tag_type = _cairo_tag_stack_get_structure_type (&ic->analysis_tag_stack); - if (tag_type == TAG_TREE_TYPE_TAGGED || tag_type == TAG_TREE_TYPE_STRUCTURE) { + if (tag_type == TAG_TREE_TYPE_TAGGED || tag_type == TAG_TREE_TYPE_STRUCTURE || + tag_type == TAG_TREE_TYPE_LINK_ONLY) { status = cairo_pdf_interchange_write_parent_tree (surface); if (unlikely (status))