summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2023-07-10 20:38:25 +0200
committerAndras Timar <andras.timar@collabora.com>2023-07-31 21:40:11 +0200
commite9317b62dab5f711b348619afb8034fe1603f9e6 (patch)
tree4a434b34ef9172aadb541ca2524fa6cfa074d865 /vcl
parent785d686b33c7a69921149fddcef5d7c0cc1fec45 (diff)
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.stahl@allotropia.de> (cherry picked from commit 1ae1f76caeef35a0db7705dd0c330936a77b6a8c) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154265 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/qa/cppunit/pdfexport/pdfexport.cxx2
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx8
2 files changed, 5 insertions, 5 deletions
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 24b081ebb8ef..47bf5edbaf48 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -1930,10 +1930,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";