diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2022-04-21 19:54:53 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2022-04-21 21:07:50 +0200 |
commit | 9ec0395a0666ce07871b945dcb9a741d2237103b (patch) | |
tree | 4ee04a3b4c34b49fd8e1c45ac362d52e37237b46 /sc | |
parent | 4dfdb5a3c9b9ce1eb61c28d8f570398c04fb0d01 (diff) |
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.lunak@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/table1.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |