vcl/qa/cppunit/pdfexport/pdfexport.cxx | 2 +- vcl/source/gdi/pdfwriter_impl.cxx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-)
New commits: commit 1ae1f76caeef35a0db7705dd0c330936a77b6a8c Author: Michael Stahl <michael.st...@allotropia.de> AuthorDate: Mon Jul 10 20:38:25 2023 +0200 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Tue Jul 11 12:17:07 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> diff --git a/vcl/qa/cppunit/pdfexport/pdfexport.cxx b/vcl/qa/cppunit/pdfexport/pdfexport.cxx index f5de0480e4d4..5e26c693197d 100644 --- a/vcl/qa/cppunit/pdfexport/pdfexport.cxx +++ b/vcl/qa/cppunit/pdfexport/pdfexport.cxx @@ -4260,7 +4260,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 75e74b4e1af9..9d957f0d113a 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -1911,10 +1911,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";