[Libreoffice-bugs] [Bug 107492] : OutOfBound error when cells are deleted

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Jan 21 20:40:27 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=107492

Julien Nabet <serval2412 at yahoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |serval2412 at yahoo.fr

--- Comment #3 from Julien Nabet <serval2412 at yahoo.fr> ---
On pc Debian x86-64 with master sources updated today, I could reproduce this.
Reverting partly the patch makes it work:
diff --git a/sc/source/core/tool/rangelst.cxx
b/sc/source/core/tool/rangelst.cxx
index 76b68d1a1b27..7ff6f96b2585 100644
--- a/sc/source/core/tool/rangelst.cxx
+++ b/sc/source/core/tool/rangelst.cxx
@@ -353,11 +353,11 @@ bool ScRangeList::UpdateReference(
         {
             if(nDx < 0)
             {
-                bChanged = DeleteArea(nCol1+nDx, nRow1, nTab1, nCol1-1, nRow2,
nTab2);
+                DeleteArea(nCol1+nDx, nRow1, nTab1, nCol1-1, nRow2, nTab2);
             }
             if(nDy < 0)
             {
-                bChanged = DeleteArea(nCol1, nRow1+nDy, nTab1, nCol2, nRow1-1,
nTab2);
+                DeleteArea(nCol1, nRow1+nDy, nTab1, nCol2, nRow1-1, nTab2);
             }
             SAL_WARN_IF(nDx < 0 && nDy < 0, "sc", "nDx and nDy are negative,
check why");

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200121/6b226e9f/attachment.htm>


More information about the Libreoffice-bugs mailing list