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 895d935e383ab5a1d126d68862729fe3bfb16023
Author: Jim Jagielski <[email protected]>
AuthorDate: Fri Oct 23 06:33:38 2026 -0400

    sw: don't write a 0 table:number-columns-spanned
---
 main/sw/source/filter/xml/xmltble.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main/sw/source/filter/xml/xmltble.cxx 
b/main/sw/source/filter/xml/xmltble.cxx
index b78bbf0826..b64768e717 100644
--- a/main/sw/source/filter/xml/xmltble.cxx
+++ b/main/sw/source/filter/xml/xmltble.cxx
@@ -1002,7 +1002,7 @@ void SwXMLExport::ExportTableLine( const SwTableLine& 
rLine,
             }
             // <--
 
-                       sal_uInt16 nColSpan = nCol - nOldCol + 1U;
+                       sal_uInt16 nColSpan = nCol >= nOldCol ? nCol - nOldCol 
+ 1U : 1U;
 
             if ( nRowSpan >= 1 )
                            ExportTableBox( *pBox, nColSpan, static_cast< 
sal_uInt16 >(nRowSpan), rTblInfo );

Reply via email to