vcl/source/gdi/pdfwriter_impl.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 28b06bb7236f8c6e17423dc3df446306900355f1
Author:     Michael Stahl <michael.st...@allotropia.de>
AuthorDate: Thu Nov 24 11:04:56 2022 +0100
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Thu Nov 24 19:38:10 2022 +0100

    tdf#149140 vcl: PDF/UA export: Scope attribute exists since PDF 1.5
    
    (regression from commit dfffe710d07f84f4152cf61ccd4a69279a26ff7c)
    
    Change-Id: I12e077d857d25db9636f2a06f953616ae2d907bc
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143209
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>

diff --git a/vcl/source/gdi/pdfwriter_impl.cxx 
b/vcl/source/gdi/pdfwriter_impl.cxx
index c3a4b092e06e..fdc78dcb8422 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -10934,7 +10934,9 @@ bool PDFWriterImpl::setStructureAttribute( enum 
PDFWriter::StructAttribute eAttr
             case PDFWriter::Scope:
                 if (eVal == PDFWriter::Row || eVal == PDFWriter::Column || 
eVal == PDFWriter::Both)
                 {
-                    if (eType == PDFWriter::TableHeader)
+                    if (eType == PDFWriter::TableHeader
+                        && m_aContext.Version != PDFWriter::PDFVersion::PDF_A_1
+                        && PDFWriter::PDFVersion::PDF_1_5 <= 
m_aContext.Version)
                     {
                         bInsert = true;
                     }

Reply via email to