diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-12-07 09:17:50 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-01-08 16:47:56 +0100 |
commit | 94311ca03b03936c59024c9e39a0920f67ab9131 (patch) | |
tree | aa4b490f374c1ea56087a99cc69bc6560752fba8 /sc | |
parent | 50fbf7fef622e25fbb88183c8b9c7399cefa5d99 (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
Reviewed-on: https://gerrit.libreoffice.org/13344
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
(cherry picked from commit 8176253a7f8b061eb18015763ca674ea959ddf37)
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/table4.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/table4.cxx b/sc/source/core/data/table4.cxx index 24effeac84be..39f35f4eecfb 100644 --- a/sc/source/core/data/table4.cxx +++ b/sc/source/core/data/table4.cxx @@ -1297,7 +1297,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; |