diff options
author | Mark Hung <marklh9@gmail.com> | 2018-07-17 18:58:27 +0800 |
---|---|---|
committer | Mark Hung <marklh9@gmail.com> | 2018-07-25 15:00:10 +0200 |
commit | 7ff086c9141429e32c733f38d288cf67d6e9e3c9 (patch) | |
tree | 1e0866d4f6b4ac7fdb708c5df190bc9352d6c9dd /sd/qa | |
parent | 981ffeb876e3b3d898b00054ed5072035cf27c1a (diff) |
tdf#118836: fix grow-shrink animation in saved pptx.
Convert AnimeTransform with transform type SCALE to animScale.
Change-Id: I39dfbdb814afa78ca981238bb1876f4af0995791
Reviewed-on: https://gerrit.libreoffice.org/57790
Tested-by: Jenkins
Reviewed-by: Mark Hung <marklh9@gmail.com>
Diffstat (limited to 'sd/qa')
-rw-r--r-- | sd/qa/unit/data/odp/tdf118836.odp | bin | 0 -> 11655 bytes | |||
-rw-r--r-- | sd/qa/unit/export-tests-ooxml2.cxx | 14 |
2 files changed, 14 insertions, 0 deletions
diff --git a/sd/qa/unit/data/odp/tdf118836.odp b/sd/qa/unit/data/odp/tdf118836.odp Binary files differnew file mode 100644 index 000000000000..50857b79deb7 --- /dev/null +++ b/sd/qa/unit/data/odp/tdf118836.odp diff --git a/sd/qa/unit/export-tests-ooxml2.cxx b/sd/qa/unit/export-tests-ooxml2.cxx index e33f02f82103..6201053df0ad 100644 --- a/sd/qa/unit/export-tests-ooxml2.cxx +++ b/sd/qa/unit/export-tests-ooxml2.cxx @@ -150,6 +150,7 @@ public: void testOpenDocumentAsReadOnly(); void testTdf118835(); void testTdf118768(); + void testTdf118836(); CPPUNIT_TEST_SUITE(SdOOXMLExportTest2); @@ -221,6 +222,7 @@ public: CPPUNIT_TEST(testOpenDocumentAsReadOnly); CPPUNIT_TEST(testTdf118835); CPPUNIT_TEST(testTdf118768); + CPPUNIT_TEST(testTdf118836); CPPUNIT_TEST_SUITE_END(); @@ -1776,6 +1778,18 @@ void SdOOXMLExportTest2::testTdf118768() xDocShRef->DoClose(); } +void SdOOXMLExportTest2::testTdf118836() +{ + sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc("sd/qa/unit/data/odp/tdf118836.odp"), ODP); + utl::TempFile tempFile; + xDocShRef = saveAndReload(xDocShRef.get(), PPTX, &tempFile); + + xmlDocPtr pXmlDocContent = parseExport(tempFile, "ppt/slides/slide1.xml"); + assertXPath(pXmlDocContent, "//p:animScale/p:by", "x", "250000"); + assertXPath(pXmlDocContent, "//p:animScale/p:by", "y", "250000"); + xDocShRef->DoClose(); +} + CPPUNIT_TEST_SUITE_REGISTRATION(SdOOXMLExportTest2); CPPUNIT_PLUGIN_IMPLEMENT(); |