summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorTibor Nagy <nagy.tibor2@nisz.hu>2021-11-18 09:05:30 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2021-11-29 11:37:52 +0100
commitc22f1ceba99b2ff4fa23728eb8581294e9414016 (patch)
tree33994239f5c308932d56a2cb7b86782730782599 /sd
parent4300facf4bc6fe0d9765db56720ced99c564caa2 (diff)
tdf#118045 PPTX export: fix proportional line spacing
If line spacing differs from the default 100%, export it as direct paragraph formatting (similar to the other paragraph style properties). Change-Id: Id5db9ae36018c8a20b832470685bdfbba19d80f3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125438 Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org> (cherry picked from commit 5db7694a6377d32bdef293b4ece27b471c3ea427) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125992 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sd')
-rw-r--r--sd/qa/unit/data/odp/tdf118045.odpbin0 -> 12192 bytes
-rw-r--r--sd/qa/unit/export-tests-ooxml1.cxx15
2 files changed, 15 insertions, 0 deletions
diff --git a/sd/qa/unit/data/odp/tdf118045.odp b/sd/qa/unit/data/odp/tdf118045.odp
new file mode 100644
index 000000000000..8b5fac36af4f
--- /dev/null
+++ b/sd/qa/unit/data/odp/tdf118045.odp
Binary files differ
diff --git a/sd/qa/unit/export-tests-ooxml1.cxx b/sd/qa/unit/export-tests-ooxml1.cxx
index 52b580a95e05..9efb79ae9cf1 100644
--- a/sd/qa/unit/export-tests-ooxml1.cxx
+++ b/sd/qa/unit/export-tests-ooxml1.cxx
@@ -124,6 +124,7 @@ public:
void testPlaceholderFillAndOutlineExport();
void testTdf143126();
void testTdf143129();
+ void testTdf118045();
CPPUNIT_TEST_SUITE(SdOOXMLExportTest1);
@@ -190,6 +191,7 @@ public:
CPPUNIT_TEST(testPlaceholderFillAndOutlineExport);
CPPUNIT_TEST(testTdf143126);
CPPUNIT_TEST(testTdf143129);
+ CPPUNIT_TEST(testTdf118045);
CPPUNIT_TEST_SUITE_END();
@@ -1733,6 +1735,19 @@ void SdOOXMLExportTest1::testTdf143129()
assertXPath(pXmlDoc, "/p:presentationPr/p:showPr/p:custShow", "id", "0" );
}
+void SdOOXMLExportTest1::testTdf118045()
+{
+ sd::DrawDocShellRef xDocShRef
+ = loadURL(m_directories.getURLFromSrc(u"/sd/qa/unit/data/odp/tdf118045.odp"), ODP);
+ utl::TempFile tempFile;
+ xDocShRef = saveAndReload(xDocShRef.get(), PPTX, &tempFile);
+ xDocShRef->DoClose();
+
+ xmlDocUniquePtr pXmlDoc1 = parseExport(tempFile, "ppt/slides/slide1.xml");
+ assertXPath(pXmlDoc1, "/p:sld/p:cSld/p:spTree/p:sp/p:txBody/a:p/a:pPr/a:lnSpc/a:spcPct", "val",
+ "110000");
+}
+
CPPUNIT_TEST_SUITE_REGISTRATION(SdOOXMLExportTest1);
CPPUNIT_PLUGIN_IMPLEMENT();