Merge branch 'jfkthame-master-patch-75366' into 'master'

[pdf-interchange] Write trees even if only LINK tags are present

Closes #487

See merge request cairo/cairo!185
This commit is contained in:
Uli Schlachter 2021-06-02 10:24:33 +00:00
commit 2edcb1ac23

View file

@ -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))