summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-02-13 19:42:41 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-02-14 16:22:15 +0100
commit6a3f402f44572ddaa409915a5d67c10cec8d63b5 (patch)
treec79fddb3469878d22e23a2fff765d37babf85b89 /sc
parent48c32f1118431afded725b21b6bf65b89a52ecdd (diff)
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 <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/table2.cxx2
1 files changed, 1 insertions, 1 deletions
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)
{