sc/source/core/data/fillinfo.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit b2a5fa061c7e254a39b08523f2c6988baf699938 Author: Luboš Luňák <l.lu...@collabora.com> AuthorDate: Wed Sep 14 08:02:13 2022 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Thu Sep 15 10:09:08 2022 +0200 fix off-by-one in Calc shadow handling (tdf#150931) A mistake from d48e68407931fc33044aa7f3fc9e971897fac610, the number is off as can be seen when compared to the bRightDiff part above. Change-Id: Id87d69c45cd3336ab8a122a2cae505a16848cdf7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139902 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lu...@collabora.com> (cherry picked from commit 308174945174bfd67f0444ef0c29634a4ecd961b) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139844 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sc/source/core/data/fillinfo.cxx b/sc/source/core/data/fillinfo.cxx index e76ef808b8b6..a6fa1b3183e9 100644 --- a/sc/source/core/data/fillinfo.cxx +++ b/sc/source/core/data/fillinfo.cxx @@ -807,8 +807,8 @@ void ScDocument::FillInfo( } if (bBottomDiff && bRightDiff) { - pRowInfo[nArrRow+1].cellInfo(nCol).pHShadowOrigin = pThisAttr; - pRowInfo[nArrRow+1].cellInfo(nCol).eHShadowPart = SC_SHADOW_CORNER; + pRowInfo[nArrRow+1].cellInfo(nCol+1).pHShadowOrigin = pThisAttr; + pRowInfo[nArrRow+1].cellInfo(nCol+1).eHShadowPart = SC_SHADOW_CORNER; } break;