[Libreoffice-commits] core.git: Branch 'libreoffice-6-4' - sc/source
Eike Rathke (via logerrit)
logerrit at kemper.freedesktop.org
Thu Feb 27 08:42:15 UTC 2020
sc/source/core/tool/token.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit b66415692433a7a63d8cfcaf14d0714efda02105
Author: Eike Rathke <erack at redhat.com>
AuthorDate: Tue Feb 25 18:00:29 2020 +0100
Commit: Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Thu Feb 27 09:41:44 2020 +0100
Resolves: tdf#130825 Compare exclusive end, not inclusive end sheet number
Change-Id: Id5c3056f4e4466ccb5ea3654e60869bf7788b7ca
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89471
Reviewed-by: Eike Rathke <erack at redhat.com>
Tested-by: Jenkins
(cherry picked from commit f2b18667c1a8c6a002a229d4ae09dc418dc567e1)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89522
Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>
diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx
index 0e8be4de4d2e..1b141b207c76 100644
--- a/sc/source/core/tool/token.cxx
+++ b/sc/source/core/tool/token.cxx
@@ -4153,7 +4153,7 @@ sc::RefUpdateResult ScTokenArray::AdjustReferenceOnDeletedTab( const sc::RefUpda
if (rCxt.mnDeletePos <= nOldTab)
{
aRes.mbNameModified = true;
- if (rCxt.mnDeletePos + rCxt.mnSheets < nOldTab)
+ if (rCxt.mnDeletePos + rCxt.mnSheets <= nOldTab)
(*pp)->SetSheet( nOldTab - rCxt.mnSheets);
else
// Would point to a deleted sheet. Invalidate.
More information about the Libreoffice-commits
mailing list