summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-10-19 20:23:10 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-10-20 15:37:43 +0200
commitf42857302cc412f86af7166b534eb3961ccad7a6 (patch)
tree9c1ebc0ff664f5da699fab8d7546510e65d13541 /sc
parent46c1bc239d2f089197bcfe0d296ba745c543feb5 (diff)
cid#1607217 silence Overflowed constant
Change-Id: I438da78c6589c796d56065878fcd4c98b2bb781b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175247 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/dpoutput.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/dpoutput.cxx b/sc/source/core/data/dpoutput.cxx
index 83cf29066e5b..1c6a0c102438 100644
--- a/sc/source/core/data/dpoutput.cxx
+++ b/sc/source/core/data/dpoutput.cxx
@@ -1039,7 +1039,7 @@ void ScDPOutput::outputColumnHeaders(SCTAB nTab, ScDPOutputImpl& rOutputImpl)
SCCOL nEndColPos = mnDataStartCol + SCCOL(nEnd); //TODO: check for overflow
if (nField + 1 < mpColFields.size())
{
- if (nField == mpColFields.size() - 2)
+ if (nField + 2 == mpColFields.size())
{
rOutputImpl.AddCol( nColPos );
if (nColPos + 1 == nEndColPos)