diff options
author | Tibor Nagy <nagy.tibor2@nisz.hu> | 2022-05-13 14:09:35 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2022-05-23 10:59:10 +0200 |
commit | f4efaf455136c3a0db8dfd3f1afc0db827192147 (patch) | |
tree | ecc5b0ed1251793e35e84106a0269f53fed39ee2 /sd | |
parent | 6974647815a4bebf57136be9d7cb28d4137e96b3 (diff) |
tdf#66228 PPTX export: fix lost U-shaped connectors
which were replaced with straight connector lines.
The "Line Connector" has no equivalent in OOXML. So far it has
been saved as a "Straight connector". In most cases, the better
solution is to change it to "Standard connector", keeping
the original layout with U-shaped connectors.
Change-Id: I9d6b6174d0556ba2478c6a9837c500b3cc794c82
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134284
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/odp/tdf66228.odp | bin | 0 -> 13283 bytes | |||
-rw-r--r-- | sd/qa/unit/export-tests-ooxml1.cxx | 15 |
2 files changed, 15 insertions, 0 deletions
diff --git a/sd/qa/unit/data/odp/tdf66228.odp b/sd/qa/unit/data/odp/tdf66228.odp Binary files differnew file mode 100644 index 000000000000..a34c6fc65270 --- /dev/null +++ b/sd/qa/unit/data/odp/tdf66228.odp diff --git a/sd/qa/unit/export-tests-ooxml1.cxx b/sd/qa/unit/export-tests-ooxml1.cxx index a1dac4fbf63c..70c64d793084 100644 --- a/sd/qa/unit/export-tests-ooxml1.cxx +++ b/sd/qa/unit/export-tests-ooxml1.cxx @@ -48,6 +48,7 @@ using namespace css; class SdOOXMLExportTest1 : public SdModelTestBaseXML { public: + void testTdf66228(); void testTdf147919(); void testTdf130165(); void testTdf124781(); @@ -118,6 +119,7 @@ public: CPPUNIT_TEST_SUITE(SdOOXMLExportTest1); + CPPUNIT_TEST(testTdf66228); CPPUNIT_TEST(testTdf147919); CPPUNIT_TEST(testTdf130165); CPPUNIT_TEST(testTdf124781); @@ -215,6 +217,19 @@ void checkFontAttributes( const SdrTextObj* pObj, ItemValue nVal, sal_uInt32 nId } +void SdOOXMLExportTest1::testTdf66228() +{ + sd::DrawDocShellRef xDocShRef + = loadURL(m_directories.getURLFromSrc(u"/sd/qa/unit/data/odp/tdf66228.odp"), ODP); + 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:cxnSp/p:spPr/a:prstGeom", "prst", + "bentConnector3"); +} + void SdOOXMLExportTest1::testTdf147919() { sd::DrawDocShellRef xDocShRef |