sc/source/core/data/table2.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit b6a9cc00c4b8814a279cdea4f0a5e70ace7e65e1
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Tue Dec 24 15:11:23 2024 +0000
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Thu Dec 26 11:24:45 2024 +0100

    cid#1636890 presumably Division by zero shouldn't arise here
    
    Change-Id: Id9a5267ce250143c8c7d87ad477d8fe538bb1b1b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179314
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Jenkins

diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index 4fc0e73397da..c4e8f0cfa11e 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -4393,6 +4393,7 @@ SCROW ScTable::GetRowForHeightPixels(SCROW nStartRow, 
tools::Long& rStartRowHeig
         // is the target height inside the common span ?
         if (nSumPx + nCommonPixels > nHeightPx)
         {
+            assert(nRowHeightPx != 0);
             // calculate how many rows to skip inside the common span
             SCROW nRowsInside = (nHeightPx - nSumPx) / nRowHeightPx;
             nRow += nRowsInside;

Reply via email to