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

New commits:
commit f439bbcd20745b24533dbbdd9957a5741230555f
Author:     Mike Kaganski <[email protected]>
AuthorDate: Tue Feb 3 08:54:48 2026 +0100
Commit:     Mike Kaganski <[email protected]>
CommitDate: Tue Feb 3 10:19:59 2026 +0100

    Simplify the calculation
    
    What happens here is simple assignment of nTotalRows.
    
    Change-Id: I2a95b9377d1bbb168d39ecfaeed1d104baa1217c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198582
    Reviewed-by: Mike Kaganski <[email protected]>
    Tested-by: Jenkins

diff --git a/sc/source/filter/xml/xmlexprt.cxx 
b/sc/source/filter/xml/xmlexprt.cxx
index e32c6b89ee36..982c3579e917 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -1593,7 +1593,7 @@ void ScXMLExport::ExportFormatRanges(ScDocument& rDoc, 
const sal_Int32 nStartCol
                 if (nMaxRows >= nTotalRows - nRows)
                 {
                     OpenRow(nSheet, nStartRow + nRows, nTotalRows - nRows, 
aRowAttr);
-                    nRows += nTotalRows - nRows;
+                    nRows = nTotalRows;
                 }
                 else
                 {

Reply via email to