sc/source/core/data/table4.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 280bb546140a519aac54f9865a3db8dd50e779e7 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Thu Jun 13 12:45:49 2024 +0500 Commit: Adolfo Jayme Barrientos <fit...@ubuntu.com> CommitDate: Thu Jun 13 21:46:26 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/+/168793 Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com> diff --git a/sc/source/core/data/table4.cxx b/sc/source/core/data/table4.cxx index f8a03dd4c7ec..7e9cd957e667 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)