summaryrefslogtreecommitdiff
path: root/sd/qa/unit/export-tests.cxx
diff options
context:
space:
mode:
authorTünde Tóth <toth.tunde@nisz.hu>2023-01-27 09:55:40 +0100
committerLászló Németh <nemeth@numbertext.org>2023-02-15 08:35:00 +0000
commitda725dfe07f2cf10349772d1667591c4d6a6fe8a (patch)
treed12c8daae8065a0e6b1162c472174342822c5735 /sd/qa/unit/export-tests.cxx
parent7fb8b73ad320e32af130ceddec80a9ff08407eab (diff)
tdf#153179 ODP export regression: fix lost shape at missing object
If the object is missing, it's still possible to keep its shape by exporting its preview graphic, as before the regression. Regression from commit adc042f95d3dbd65b778260025d59283146916e5 "tdf#124333 PPTX import: fix Z-order of embedded OLE objects". See also commit 907da02bf8b33c080538731864225b3c44251328 "tdf#152436 PPTX export regression: fix lost shape at missing object" Change-Id: I614730435a857c6cdf01d4cdfc525fc452dffa29 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146247 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/qa/unit/export-tests.cxx')
-rw-r--r--sd/qa/unit/export-tests.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/sd/qa/unit/export-tests.cxx b/sd/qa/unit/export-tests.cxx
index a7915dcc4c23..1878bf11e706 100644
--- a/sd/qa/unit/export-tests.cxx
+++ b/sd/qa/unit/export-tests.cxx
@@ -103,6 +103,7 @@ public:
void testTdf112126();
void testCellProperties();
void testUserTableStyles();
+ void testTdf153179();
CPPUNIT_TEST_SUITE(SdExportTest);
@@ -156,6 +157,7 @@ public:
CPPUNIT_TEST(testTdf112126);
CPPUNIT_TEST(testCellProperties);
CPPUNIT_TEST(testUserTableStyles);
+ CPPUNIT_TEST(testTdf153179);
CPPUNIT_TEST_SUITE_END();
virtual void registerNamespaces(xmlXPathContextPtr& pXmlXPathCtx) override
@@ -1861,6 +1863,15 @@ void SdExportTest::testUserTableStyles()
CPPUNIT_ASSERT(xTableStyle->isUserDefined());
}
+void SdExportTest::testTdf153179()
+{
+ createSdImpressDoc("pptx/ole-emf_min.pptx");
+ saveAndReload("impress8");
+
+ // Check number of shapes after export.
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(1), getPage(0)->getCount());
+}
+
CPPUNIT_TEST_SUITE_REGISTRATION(SdExportTest);
CPPUNIT_PLUGIN_IMPLEMENT();