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

New commits:
commit 6a3f402f44572ddaa409915a5d67c10cec8d63b5
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sun Feb 13 19:42:41 2022 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Mon Feb 14 16:22:15 2022 +0100

    cid#1472568 silence Integer handling issues DIVIDE_BY_ZERO
    
    Change-Id: I196e3910804902c9251b46497b1626f3470b6171
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129905
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index 38133b16c48d..759a7858ec83 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -4130,7 +4130,7 @@ SCROW ScTable::GetRowForHeight(tools::Long nHeight) const
 
     ScFlatUInt16RowSegments::RangeData aRowHeightRange;
     aRowHeightRange.mnRow2 = -1;
-    aRowHeightRange.mnValue = 0; // silence MSVC C4701
+    aRowHeightRange.mnValue = 1; // silence MSVC C4701
 
     for (SCROW nRow = 0; nRow <= rDocument.MaxRow(); ++nRow)
     {

Reply via email to