diff options
-rw-r--r-- | sc/source/core/data/table2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index 73c21a0376fb..2c132d8c98dd 100644 --- a/sc/source/core/data/table2.cxx +++ b/sc/source/core/data/table2.cxx @@ -1597,7 +1597,7 @@ ScFormulaCell* ScTable::GetFormulaCell( SCCOL nCol, SCROW nRow ) std::unique_ptr<ScPostIt> ScTable::ReleaseNote( SCCOL nCol, SCROW nRow ) { - if (!ValidCol(nCol)) + if (!ValidCol(nCol) || nCol >= GetAllocatedColumnsCount()) return nullptr; return aCol[nCol].ReleaseNote(nRow); |