[Libreoffice-commits] core.git: sc/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu May 9 10:12:17 UTC 2019
sc/source/core/data/table2.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 82dc7a39364af0ccc7357f0dffe2a2cd04632f4e
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu May 9 09:13:15 2019 +0100
Commit: Caolán McNamara <caolanm at 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 <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at 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);
More information about the Libreoffice-commits
mailing list