diff options
author | Uli Schlachter <psychon@znc.in> | 2021-06-02 10:24:33 +0000 |
---|---|---|
committer | Uli Schlachter <psychon@znc.in> | 2021-06-02 10:24:33 +0000 |
commit | 2edcb1ac2385c670c36d7ae53ae7de1637969ced (patch) | |
tree | e8a9532635aea8db6dd1b0107e3fa40d7a854db8 /src/cairo-pdf-interchange.c | |
parent | 267d0e1c988c1780f5131d098d87916ece51eece (diff) | |
parent | 60d7ff988b458c65d9537d4d489347b1b44f399b (diff) | |
download | cairo-2edcb1ac2385c670c36d7ae53ae7de1637969ced.tar.gz |
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
Diffstat (limited to 'src/cairo-pdf-interchange.c')
-rw-r--r-- | src/cairo-pdf-interchange.c | 3 |
1 files changed, 2 insertions, 1 deletions
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)) |