| commit | 9e6fc988b6ef7420ba6cfa55aea0b48ec47462c3 | [log] |
|---|---|---|
| author | Eike Rathke <erack@redhat.com> | Tue Feb 25 18:00:29 2020 +0100 |
| committer | Xisco FaulĂ <xiscofauli@libreoffice.org> | Thu Feb 27 09:42:01 2020 +0100 |
| tree | bcaf5c50157911e455a17d1df4b3644afdbe3162 | |
| parent | bb1d0511ff4f6a3f1c5019472eb04550e0745557 [diff] |
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@redhat.com> Tested-by: Jenkins (cherry picked from commit f2b18667c1a8c6a002a229d4ae09dc418dc567e1) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89523 Reviewed-by: Xisco FaulĂ <xiscofauli@libreoffice.org>
diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx index 906f170..ccdec84 100644 --- a/sc/source/core/tool/token.cxx +++ b/sc/source/core/tool/token.cxx
@@ -4155,7 +4155,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.