sw/source/core/text/EnhancedPDFExportHelper.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit bed8aa41525a4194497f5a2e05633b4d41d8ab07
Author:     Michael Stahl <michael.st...@allotropia.de>
AuthorDate: Fri Mar 10 14:44:12 2023 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Mon Mar 13 16:32:11 2023 +0000

    tdf#152218 sw: PDF/UA export: produce Link from footnote to body
    
    There was already a Link StructElem from the reference in the body to
    the footnote but it was missing for the other direction, so veraPDF
    complains about a Link annotation without StructElem:
    
      Specification: ISO 14289-1:2014, Clause: 7.18.5, Test number: 1
      Links shall be tagged according to ISO 32000-1:2008, 14.8.4.4.2, Link 
Element.
    
    Change-Id: I57aa153d5899bcfa505e274a01b0183978a2e995
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148644
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>
    (cherry picked from commit c105fbec07d0734b6b183ea8b4da15e8fe260f9b)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148763
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sw/source/core/text/EnhancedPDFExportHelper.cxx 
b/sw/source/core/text/EnhancedPDFExportHelper.cxx
index cff239dec732..c0790c5088fd 100644
--- a/sw/source/core/text/EnhancedPDFExportHelper.cxx
+++ b/sw/source/core/text/EnhancedPDFExportHelper.cxx
@@ -1528,6 +1528,7 @@ void SwTaggedPDFHelper::BeginInlineStructureElements()
             }
             break;
 
+        case PortionType::FootnoteNum: // tdf#152218 link both directions
         case PortionType::Footnote :
             nPDFType = vcl::PDFWriter::Link;
             aPDFType = aLinkString;

Reply via email to