sc/source/filter/excel/excdoc.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b8f891d87e516db2a57660e459437cf3a4088405
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Tue Aug 19 13:20:40 2025 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Tue Aug 19 18:31:09 2025 +0200

    don't export an empty tables tag in connections.xml
    
    Change-Id: Idd8f03e0964610c22082266988e3e48f4f7cf1eb
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189919
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sc/source/filter/excel/excdoc.cxx 
b/sc/source/filter/excel/excdoc.cxx
index 05b0f08814d3..c164c272ce32 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));

Reply via email to