summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorTibor Nagy <nagy.tibor2@nisz.hu>2022-01-04 14:38:47 +0100
committerLászló Németh <nemeth@numbertext.org>2022-02-02 11:37:07 +0100
commit22b66d4083d34cbce2b7b48daeed3152bf9877b7 (patch)
tree0c6797568b06a25da863365023220a014f3c02c7 /sd
parentfd7a84aca0c94044bbc3bfb8852a1ae5115845bf (diff)
tdf#137675 PPTX export: adding missing fill="none" to a:path
Follow-up to commit 9310e47e2ce71348a16e5412131946348833f4b2 "tdf#101122 DOCX custom shape export: remove bad fill". Change-Id: I2acdae3964c31ee366387d9938fe366405dcace9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127944 Tested-by: Jenkins Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sd')
-rw-r--r--sd/qa/unit/data/pptx/tdf137675.pptxbin0 -> 23802 bytes
-rw-r--r--sd/qa/unit/export-tests-ooxml1.cxx14
2 files changed, 14 insertions, 0 deletions
diff --git a/sd/qa/unit/data/pptx/tdf137675.pptx b/sd/qa/unit/data/pptx/tdf137675.pptx
new file mode 100644
index 000000000000..d4d767aa5246
--- /dev/null
+++ b/sd/qa/unit/data/pptx/tdf137675.pptx
Binary files differ
diff --git a/sd/qa/unit/export-tests-ooxml1.cxx b/sd/qa/unit/export-tests-ooxml1.cxx
index 76e54f62ea1b..db33355b9bc6 100644
--- a/sd/qa/unit/export-tests-ooxml1.cxx
+++ b/sd/qa/unit/export-tests-ooxml1.cxx
@@ -113,6 +113,7 @@ public:
void testTdf143126();
void testTdf143129();
void testTdf118045();
+ void testTdf137675();
CPPUNIT_TEST_SUITE(SdOOXMLExportTest1);
@@ -181,6 +182,7 @@ public:
CPPUNIT_TEST(testTdf143126);
CPPUNIT_TEST(testTdf143129);
CPPUNIT_TEST(testTdf118045);
+ CPPUNIT_TEST(testTdf137675);
CPPUNIT_TEST_SUITE_END();
@@ -1749,6 +1751,18 @@ void SdOOXMLExportTest1::testTdf118045()
"110000");
}
+void SdOOXMLExportTest1::testTdf137675()
+{
+ sd::DrawDocShellRef xDocShRef
+ = loadURL(m_directories.getURLFromSrc(u"/sd/qa/unit/data/pptx/tdf137675.pptx"), PPTX);
+ utl::TempFile tempFile;
+ xDocShRef = saveAndReload(xDocShRef.get(), PPTX, &tempFile);
+ xDocShRef->DoClose();
+
+ xmlDocUniquePtr pXmlDoc = parseExport(tempFile, "ppt/slides/slide1.xml");
+ assertXPath(pXmlDoc, "/p:sld/p:cSld/p:spTree/p:sp/p:spPr/a:custGeom/a:pathLst/a:path", "fill", "none");
+}
+
CPPUNIT_TEST_SUITE_REGISTRATION(SdOOXMLExportTest1);
CPPUNIT_PLUGIN_IMPLEMENT();