sc/source/core/data/table2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 82dc7a39364af0ccc7357f0dffe2a2cd04632f4e Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu May 9 09:13:15 2019 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu May 9 12:10:57 2019 +0200 crashtesting: failure importing tdf118662-1.xlsx with dynamic columns Change-Id: I1f2ed918932066d8b0def57568f5dc23be3605e4 Reviewed-on: https://gerrit.libreoffice.org/72028 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> 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); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits