sc/source/core/data/table4.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 9e426e966528a7e0eb357cfe2aaf4091134d80b1 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Thu Jun 13 12:45:49 2024 +0500 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Thu Jun 13 17:28:58 2024 +0200 tdf#161511: create column if not exists Change-Id: I56a4792beab4c98a676b10d975fcd9be3fbef3ef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168767 Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> Tested-by: Jenkins (cherry picked from commit 231722a7791df5e4315aefa1cc902bc1c0dc2e00) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168792 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sc/source/core/data/table4.cxx b/sc/source/core/data/table4.cxx index a6ddf796a7c6..63c595955220 100644 --- a/sc/source/core/data/table4.cxx +++ b/sc/source/core/data/table4.cxx @@ -2967,7 +2967,7 @@ void ScTable::GetAutoFormatData(SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, void ScTable::SetError( SCCOL nCol, SCROW nRow, FormulaError nError) { if (ValidColRow(nCol, nRow)) - aCol[nCol].SetError( nRow, nError ); + CreateColumnIfNotExists(nCol).SetError(nRow, nError); } void ScTable::UpdateInsertTabAbs(SCTAB nTable)