sc/source/core/data/fillinfo.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 308174945174bfd67f0444ef0c29634a4ecd961b
Author:     Luboš Luňák <l.lu...@collabora.com>
AuthorDate: Wed Sep 14 08:02:13 2022 +0200
Commit:     Luboš Luňák <l.lu...@collabora.com>
CommitDate: Wed Sep 14 12:21:23 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>

diff --git a/sc/source/core/data/fillinfo.cxx b/sc/source/core/data/fillinfo.cxx
index b1b3fcad209f..7d5605607579 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;
 

Reply via email to