diff options
author | Tibor Nagy <tibor.nagy.extern@allotropia.de> | 2024-06-06 19:47:45 +0200 |
---|---|---|
committer | Nagy Tibor <tibor.nagy.extern@allotropia.de> | 2024-06-07 14:38:52 +0200 |
commit | 805fd61f8efaaac119bbe28ab51617c07f0d7058 (patch) | |
tree | 34441c4d69c1720234fa6aca4a21f4e76430440a /sd/qa | |
parent | 82640810efd1636e358c047a1a5b3e4e3fc9d28a (diff) |
tdf#160591 PPTX export: fix colormap mapping in slide master
Change-Id: I154f0ff1769fbda361ec62f1dd589ca0d7686bd9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168506
Tested-by: Jenkins
Reviewed-by: Nagy Tibor <tibor.nagy.extern@allotropia.de>
Diffstat (limited to 'sd/qa')
-rw-r--r-- | sd/qa/unit/data/pptx/tdf160591.pptx | bin | 0 -> 202978 bytes | |||
-rw-r--r-- | sd/qa/unit/export-tests-ooxml4.cxx | 23 |
2 files changed, 23 insertions, 0 deletions
diff --git a/sd/qa/unit/data/pptx/tdf160591.pptx b/sd/qa/unit/data/pptx/tdf160591.pptx Binary files differnew file mode 100644 index 000000000000..9bc68d6ae4e9 --- /dev/null +++ b/sd/qa/unit/data/pptx/tdf160591.pptx diff --git a/sd/qa/unit/export-tests-ooxml4.cxx b/sd/qa/unit/export-tests-ooxml4.cxx index fbf60274d785..63af283d664f 100644 --- a/sd/qa/unit/export-tests-ooxml4.cxx +++ b/sd/qa/unit/export-tests-ooxml4.cxx @@ -38,6 +38,29 @@ public: } }; +CPPUNIT_TEST_FIXTURE(SdOOXMLExportTest4, testTdf160591) +{ + createSdImpressDoc("pptx/tdf160591.pptx"); + save(u"Impress Office Open XML"_ustr); + + // Char scheme color + xmlDocUniquePtr pXmlDoc1 = parseExport(u"ppt/slides/slide1.xml"_ustr); + assertXPath(pXmlDoc1, + "/p:sld/p:cSld/p:spTree/p:sp/p:txBody/a:p/a:r/a:rPr/a:solidFill/a:schemeClr"_ostr, + "val"_ostr, u"lt2"_ustr); + + // Master slide ColorMap + xmlDocUniquePtr pXmlDoc2 = parseExport(u"ppt/slideMasters/slideMaster1.xml"_ustr); + assertXPath(pXmlDoc2, "/p:sldMaster/p:clrMap"_ostr, "bg1"_ostr, u"dk1"_ustr); + assertXPath(pXmlDoc2, "/p:sldMaster/p:clrMap"_ostr, "tx1"_ostr, u"lt1"_ustr); + assertXPath(pXmlDoc2, "/p:sldMaster/p:clrMap"_ostr, "bg2"_ostr, u"dk2"_ustr); + assertXPath(pXmlDoc2, "/p:sldMaster/p:clrMap"_ostr, "tx2"_ostr, u"lt2"_ustr); + + // Master slide background + assertXPath(pXmlDoc2, "/p:sldMaster/p:cSld/p:bg/p:bgPr/a:solidFill/a:schemeClr"_ostr, + "val"_ostr, u"dk1"_ustr); +} + CPPUNIT_TEST_FIXTURE(SdOOXMLExportTest4, testSmartArtPreserve) { createSdImpressDoc("pptx/smartart-preserve.pptx"); |