summaryrefslogtreecommitdiff
path: root/sc/source/core/data
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-12-07 09:17:50 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-12-07 09:54:01 +0100
commit4cfca1b859bfb6b2dbe18d79a46f689fc6dbfbab (patch)
tree3fe67914e35923a9c177e838e117180e761ebec2 /sc/source/core/data
parentdcd592731c632f05f851b87567acb417b53687b1 (diff)
handle all fill cases correctly, fdo#86754
That special case only works if the whole source range contains formula cells. For now we just limit it to the special case of a single source cell. Change-Id: I71ccfde06edd97e5a9c78da22053583d05aac411
Diffstat (limited to 'sc/source/core/data')
-rw-r--r--sc/source/core/data/table4.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/table4.cxx b/sc/source/core/data/table4.cxx
index 68f9bd4dcdaa..61a0be46bca6 100644
--- a/sc/source/core/data/table4.cxx
+++ b/sc/source/core/data/table4.cxx
@@ -1313,7 +1313,7 @@ void ScTable::FillAutoSimple(
if (bVertical) // rInner&:=nRow, rOuter&:=nCol
{
aSrcCell = aCol[rCol].GetCellValue(nSource);
- if (aSrcCell.meType == CELLTYPE_FORMULA)
+ if (nISrcStart == nISrcEnd && aSrcCell.meType == CELLTYPE_FORMULA)
{
FillFormulaVertical(*aSrcCell.mpFormula, rInner, rCol, nIStart, nIEnd, pProgress, rProgress);
return;