diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-02-13 19:42:41 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-02-14 16:22:15 +0100 |
commit | 6a3f402f44572ddaa409915a5d67c10cec8d63b5 (patch) | |
tree | c79fddb3469878d22e23a2fff765d37babf85b89 /sc | |
parent | 48c32f1118431afded725b21b6bf65b89a52ecdd (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.cxx | 2 |
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) { |