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.stahl@allotropia.de>
(cherry picked from commit 28b06bb7236f8c6e17423dc3df446306900355f1)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143166
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index 7a764cc..4114916 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -10604,7 +10604,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;
                    }