oox/source/export/shapes.cxx | 3 --- sw/qa/extras/ooxmlexport/ooxmlexport16.cxx | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-)
New commits: commit 6b9794ea1c6c24d7c48a1b43a9302c51ea607215 Author: Noel Grandin <[email protected]> AuthorDate: Thu Nov 6 15:04:48 2025 +0200 Commit: Noel Grandin <[email protected]> CommitDate: Fri Nov 7 18:44:03 2025 +0100 mso-test: invalid xdr:twoCellAnchor This is using the test document from fdo73254-1.xls. Importing and exporting to XLSX and then running officeotron generates an error. The xdr:twoCellAnchor has mandatory subelements, so we cannot skip writing them, even if we have no graphic or media URL. The code I am removing seems to be from commit cbcffbaee204e9dfbdc2125dda73e36d77e9b844 Author: Jan Holesovsky <[email protected]> Date: Tue Sep 5 16:53:14 2017 +0200 tdf#106867: Export videos in PPTX. Change-Id: Ie095bad8ea9bf92b553448205f00c9cacf42d513 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193538 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Noel Grandin <[email protected]> (cherry picked from commit 4158108427515dce8452dd1026a4f0412ce3ca9a) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193570 Tested-by: Jenkins diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx index dee09e2af62f..d2413cfcae20 100644 --- a/oox/source/export/shapes.cxx +++ b/oox/source/export/shapes.cxx @@ -1403,10 +1403,7 @@ void ShapeExport::WriteGraphicObjectShapePart( const Reference< XShape >& xShape && (xShapeProps->getPropertyValue(u"MediaURL"_ustr) >>= sMediaURL); if (!xGraphic.is() && !bHasMediaURL) - { SAL_INFO("oox.shape", "no graphic or media URL found"); - return; - } FSHelperPtr pFS = GetFS(); XmlFilterBase* pFB = GetFB(); diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx index f14474c01cb2..26232b800d15 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx @@ -572,7 +572,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf141173_missingFrames) loadAndReload("tdf141173_missingFrames.rtf"); // Without the fix in place, almost all of the text and textboxes were missing. // Without the fix, there were only 2 shapes (mostly unseen). - CPPUNIT_ASSERT_EQUAL(13, getShapes()); + CPPUNIT_ASSERT_EQUAL(14, getShapes()); } DECLARE_OOXMLEXPORT_TEST(testTdf142404_tabSpacing, "tdf142404_tabSpacing.docx")
