sc/source/core/data/table1.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 9ec0395a0666ce07871b945dcb9a741d2237103b Author: Luboš Luňák <l.lu...@collabora.com> AuthorDate: Thu Apr 21 19:54:53 2022 +0200 Commit: Luboš Luňák <l.lu...@collabora.com> CommitDate: Thu Apr 21 21:07:50 2022 +0200 fix off-by-one error Change-Id: Ic58a896a7a2edf5ba602ab9cfc5a4578fd5d0a56 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133296 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lu...@collabora.com> diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx index 1d8a072a0635..e82fdf9d4cfd 100644 --- a/sc/source/core/data/table1.cxx +++ b/sc/source/core/data/table1.cxx @@ -318,7 +318,7 @@ ScTable::~ScTable() COVERITY_NOEXCEPT_FALSE { if (!rDocument.IsInDtorClear()) { - for (SCCOL nCol = 0; nCol < (aCol.size() - 1); ++nCol) + for (SCCOL nCol = 0; nCol < aCol.size(); ++nCol) { aCol[nCol].FreeNotes(); }