sc/source/filter/excel/excdoc.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 38daaa24ab4ef188fae05ab7d626f010ff68870d Author: Caolán McNamara <[email protected]> AuthorDate: Tue Aug 19 13:20:40 2025 +0100 Commit: Caolán McNamara <[email protected]> CommitDate: Wed Aug 20 09:23:59 2025 +0200 don't export an empty tables tag in connections.xml Change-Id: Idd8f03e0964610c22082266988e3e48f4f7cf1eb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189933 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> diff --git a/sc/source/filter/excel/excdoc.cxx b/sc/source/filter/excel/excdoc.cxx index f44e90864fe1..1d44f319d07a 100644 --- a/sc/source/filter/excel/excdoc.cxx +++ b/sc/source/filter/excel/excdoc.cxx @@ -1115,7 +1115,7 @@ void ExcDocument::WriteXml( XclExpXmlStream& rStrm ) = sax_fastparser::FastSerializerHelper::createAttrList(); // <tables count="<xsd:unsignedInt>"> - if (rModel.mxWebPr->mnCount >= 0) + if (rModel.mxWebPr->mnCount >= 0 && !rModel.mxWebPr->maTables.empty()) { pAttrListTables->add(XML_count, OUString::number(rModel.mxWebPr->mnCount));
