sc/source/core/data/table4.cxx | 1 + 1 file changed, 1 insertion(+) New commits: commit 8b175422fd00648085ddc604fcfbb05de3b2d343 Author: Luboš Luňák <l.lu...@collabora.com> AuthorDate: Tue Mar 29 14:23:24 2022 +0200 Commit: Luboš Luňák <l.lu...@collabora.com> CommitDate: Tue Mar 29 19:28:11 2022 +0200
allocate column in ScTable::FillSeries() when needed There's an assert triggered by Test::testAutoFill() if INITIALCOLCOUNT is set to 1. Change-Id: I65ecd7df3bf6b38a8121a252f7f53dd7f5bbb0fd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132270 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lu...@collabora.com> diff --git a/sc/source/core/data/table4.cxx b/sc/source/core/data/table4.cxx index a67144253458..ba322db9ed57 100644 --- a/sc/source/core/data/table4.cxx +++ b/sc/source/core/data/table4.cxx @@ -2364,6 +2364,7 @@ void ScTable::FillSeries( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, bOverflow = isOverflow( nVal, nMaxValue, nStepValue, nStartVal, eFillCmd); } + CreateColumnIfNotExists(nCol); if (bError) aCol[nCol].SetError(static_cast<SCROW>(nRow), FormulaError::NoValue); else if (!bOverflow && bNonEmpty)