summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-04-07 21:21:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-04-08 09:53:45 +0200
commit541ad37f2153ba0671e46c7bdf4159cee604dd5f (patch)
tree051eca21b2dc855cb07f3ab3cf8f6dae3759ded8 /sc
parentc5edb541337054412fb1d5037de6c50397ab053f (diff)
ofz#14086 another batch of oss-fuzz failures
since... commit 7282014e362a1529a36c88eb308df8ed359c2cfa Date: Fri Feb 1 15:15:16 2019 +0100 tdf#50916 Makes numbers of columns dynamic. Change-Id: Ib4f39c03aadc41fb2a226f47e452fd66b9b34821 Reviewed-on: https://gerrit.libreoffice.org/70387 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/unit/data/wks/pass/ofz14086-1.wksbin0 -> 26 bytes
-rw-r--r--sc/source/core/data/table2.cxx2
2 files changed, 1 insertions, 1 deletions
diff --git a/sc/qa/unit/data/wks/pass/ofz14086-1.wks b/sc/qa/unit/data/wks/pass/ofz14086-1.wks
new file mode 100644
index 000000000000..74c229abd7bd
--- /dev/null
+++ b/sc/qa/unit/data/wks/pass/ofz14086-1.wks
Binary files differ
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index b049ff193b66..e737b11cab3b 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -1493,7 +1493,7 @@ ScFormulaCell* ScTable::SetFormulaCell( SCCOL nCol, SCROW nRow, ScFormulaCell* p
return nullptr;
}
- return aCol[nCol].SetFormulaCell(nRow, pCell, sc::ConvertToGroupListening);
+ return CreateColumnIfNotExists(nCol).SetFormulaCell(nRow, pCell, sc::ConvertToGroupListening);
}
bool ScTable::SetFormulaCells( SCCOL nCol, SCROW nRow, std::vector<ScFormulaCell*>& rCells )