diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2023-05-26 16:18:12 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2023-05-26 19:19:12 +0200 |
commit | ef2d064c403738660e9ba6bee6de736d0575dade (patch) | |
tree | 11dd867b67876aebd6435c5e540be8b808826cac /vcl | |
parent | a83643dea9f5922d4706c9e1d8b9f53f71eb01d9 (diff) |
vcl: PDF export: stop adding pointless circular RoleMap entries
... for standard roles; no idea what these are supposed to be good for.
Change-Id: Ie2ccf394631a2bccb496b2f93e26a571ba84d58d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152334
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index c930458f55ab..36fa35e0f6a1 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -10616,9 +10616,8 @@ void PDFWriterImpl::addRoleMap(OString aAlias, PDFWriter::StructElement eType) { OString aTag = getStructureTag(eType); // For PDF/UA it's not allowed to map an alias with the same name. - // Not sure if this allowed, necessary or recommended otherwise, so - // only enable filtering when PDF/UA is enabled. - if (!m_bIsPDF_UA || aAlias != aTag) + // Not aware of a reason for doing it in any case, so just don't do it. + if (aAlias != aTag) m_aRoleMap[aAlias] = aTag; } |