diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-11-09 15:45:30 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-11-11 18:22:40 +0100 |
commit | 92618090a370c0f57be64d9f19cead2e87cc0d02 (patch) | |
tree | 0c6edaae98dcfb64356b008c1cc2a8b934b4c0c7 | |
parent | 7571696cdb075038e8a0d51d6fc8320a2c0d663f (diff) |
cid#1607751 silence Overflowed constant
Change-Id: I809149469d5393250e86116c37a41f7a52682484
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176384
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r-- | sc/source/core/tool/chartpos.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/chartpos.cxx b/sc/source/core/tool/chartpos.cxx index 51736ecd23a3..c3bb069be92c 100644 --- a/sc/source/core/tool/chartpos.cxx +++ b/sc/source/core/tool/chartpos.cxx @@ -142,8 +142,8 @@ void ScChartPositioner::GlueState() if ( i < nRanges ) pR = &(*aRangeListRef)[i]; } - assert(nEndCol >= nStartCol); SCCOL nC = nEndCol - nStartCol + 1; + assert(nC > 0 && "coverity 2023.12.2"); if ( nC == 1 ) { eGlue = ScChartGlue::Rows; |