From ef2d064c403738660e9ba6bee6de736d0575dade Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 26 May 2023 16:18:12 +0200 Subject: 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 --- vcl/source/gdi/pdfwriter_impl.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'vcl') 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; } -- cgit