summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/core/tool/chartpos.cxx2
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;