vcl/qa/cppunit/pdfexport/pdfexport.cxx | 2 +- vcl/source/gdi/pdfwriter_impl.cxx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-)
New commits: commit ae68b45bb22bfcccf622750f4728542d0c6306e9 Author: Michael Stahl <[email protected]> AuthorDate: Mon Jul 10 20:38:25 2023 +0200 Commit: Caolán McNamara <[email protected]> CommitDate: Wed Jul 26 14:47:57 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 <[email protected]> (cherry picked from commit 4ea57a68ea4b7f87ba91885b9815a45e4b533f0e) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154264 Reviewed-by: Caolán McNamara <[email protected]> diff --git a/vcl/qa/cppunit/pdfexport/pdfexport.cxx b/vcl/qa/cppunit/pdfexport/pdfexport.cxx index 4cf87ee6c994..ceda76abf6e1 100644 --- a/vcl/qa/cppunit/pdfexport/pdfexport.cxx +++ b/vcl/qa/cppunit/pdfexport/pdfexport.cxx @@ -4207,7 +4207,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 2c7642817f4d..bf8eb426348d 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -1914,10 +1914,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";
