This is an automated email from the ASF dual-hosted git repository.

jimjag pushed a commit to branch odf-devel
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit f8ad6c41e5c235e116b89f50c003068e6b3774a3
Author: Jim Jagielski <[email protected]>
AuthorDate: Fri Oct 23 07:29:11 2026 -0400

    sc: write a table for a DDE link with no cached result
---
 main/sc/source/filter/xml/XMLExportDDELinks.cxx | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/main/sc/source/filter/xml/XMLExportDDELinks.cxx 
b/main/sc/source/filter/xml/XMLExportDDELinks.cxx
index 6a5dd0d0b4..9bb14200b3 100644
--- a/main/sc/source/filter/xml/XMLExportDDELinks.cxx
+++ b/main/sc/source/filter/xml/XMLExportDDELinks.cxx
@@ -167,6 +167,18 @@ void ScXMLExportDDELinks::WriteTable(const sal_Int32 nPos)
                        nRepeatColsCount = 1;
                }
        }
+       else
+       {
+               // no cached result: table:table-columns/-rows wrappers are 
skipped on import, so no empty matrix is created
+               SvXMLElementExport aTableElem(rExport, XML_NAMESPACE_TABLE, 
XML_TABLE, sal_True, sal_True);
+               {
+                       SvXMLElementExport aElemCols(rExport, 
XML_NAMESPACE_TABLE, XML_TABLE_COLUMNS, sal_True, sal_True);
+                       SvXMLElementExport aElemCol(rExport, 
XML_NAMESPACE_TABLE, XML_TABLE_COLUMN, sal_True, sal_True);
+               }
+               SvXMLElementExport aElemRows(rExport, XML_NAMESPACE_TABLE, 
XML_TABLE_ROWS, sal_True, sal_True);
+               SvXMLElementExport aElemRow(rExport, XML_NAMESPACE_TABLE, 
XML_TABLE_ROW, sal_True, sal_True);
+               WriteCell(sal_True, sal_True, String(), 0.0, 1);
+       }
 }
 
 void 
ScXMLExportDDELinks::WriteDDELinks(uno::Reference<sheet::XSpreadsheetDocument>& 
xSpreadDoc)

Reply via email to