vcl/qa/cppunit/pdfexport/pdfexport.cxx | 2 +- vcl/source/gdi/pdfwriter_impl.cxx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-)
New commits: commit c1f7f916a6705e850cc8255d4e69055ee605059c Author: Michael Stahl <michael.st...@allotropia.de> AuthorDate: Mon Jul 10 20:38:25 2023 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Jul 12 09:12:48 2023 +0200 tdf#152234 vcl: Role values are lowercase Old version 3 of PAC throws exceptions if these are capitalized; presumably this is case sensitive, and all-lowercase unlike everything else. Change-Id: Ifc0cef38e333123e810376ab6a7630443d253841 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154282 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@allotropia.de> (cherry picked from commit 1ae1f76caeef35a0db7705dd0c330936a77b6a8c) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154265 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/vcl/qa/cppunit/pdfexport/pdfexport.cxx b/vcl/qa/cppunit/pdfexport/pdfexport.cxx index ae46ce44c427..95667732c549 100644 --- a/vcl/qa/cppunit/pdfexport/pdfexport.cxx +++ b/vcl/qa/cppunit/pdfexport/pdfexport.cxx @@ -3875,7 +3875,7 @@ CPPUNIT_TEST_FIXTURE(PdfExportTest, testFormControlAnnot) CPPUNIT_ASSERT_EQUAL(OString("PrintField"), pO->GetValue()); auto pRole = dynamic_cast<vcl::filter::PDFNameElement*>(pAObj->Lookup("Role")); CPPUNIT_ASSERT(pRole); - CPPUNIT_ASSERT_EQUAL(OString("Cb"), pRole->GetValue()); + CPPUNIT_ASSERT_EQUAL(OString("cb"), pRole->GetValue()); auto pKids = dynamic_cast<vcl::filter::PDFArrayElement*>(pStructElem->Lookup("K")); auto nMCID(0); auto nRef(0); diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index b6901420bddf..ee5def1a1126 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -1928,10 +1928,10 @@ const char* PDFWriterImpl::getAttributeValueTag( PDFWriter::StructAttributeValue aValueStrings[ PDFWriter::Header ] = "Header"; aValueStrings[ PDFWriter::Footer ] = "Footer"; aValueStrings[ PDFWriter::Watermark ] = "Watermark"; - aValueStrings[ PDFWriter::Rb ] = "Rb"; - aValueStrings[ PDFWriter::Cb ] = "Cb"; - aValueStrings[ PDFWriter::Pb ] = "Pb"; - aValueStrings[ PDFWriter::Tv ] = "Tv"; + aValueStrings[ PDFWriter::Rb ] = "rb"; + aValueStrings[ PDFWriter::Cb ] = "cb"; + aValueStrings[ PDFWriter::Pb ] = "pb"; + aValueStrings[ PDFWriter::Tv ] = "tv"; aValueStrings[ PDFWriter::Disc ] = "Disc"; aValueStrings[ PDFWriter::Circle ] = "Circle"; aValueStrings[ PDFWriter::Square ] = "Square";