summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-04-18 11:56:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-04-18 13:22:45 +0200
commitf33942b7f418e8774d99d5c56aad4455c07eb809 (patch)
tree8fac49c0baaafb496145167f5103c14a6a603032 /sc
parent314d101b1336748b22df6582e7aacd455aa4171f (diff)
tdf#124815 CRASH: inserting a column
regression from commit 7282014e362a1529a36c88eb308df8ed359c2cfa Date: Fri Feb 1 15:15:16 2019 +0100 tdf#50916 Makes numbers of columns dynamic. Change-Id: If82689218344d1fea025d7d6e409dd5ec9e2d3b3 Reviewed-on: https://gerrit.libreoffice.org/70924 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/table2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index fa35ef22e2e5..218ca0c8e1cc 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -1501,7 +1501,7 @@ bool ScTable::SetFormulaCells( SCCOL nCol, SCROW nRow, std::vector<ScFormulaCell
if (!ValidCol(nCol))
return false;
- return aCol[nCol].SetFormulaCells(nRow, rCells);
+ return CreateColumnIfNotExists(nCol).SetFormulaCells(nRow, rCells);
}
svl::SharedString ScTable::GetSharedString( SCCOL nCol, SCROW nRow ) const