diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-01-31 21:06:34 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-01-31 21:08:18 -0500 |
commit | dcca10d4e26d4602d9ac4f0b340b52c31fe086e3 (patch) | |
tree | 4d49dcecf6fa3c1186215139db751cd04281f922 /sc | |
parent | 34ebbc6418e0953cd857c35e6d63a7aaae74dfda (diff) |
Special case for formula cell fill down for quicker filling.
Change-Id: Ia03aa4c042b22551deacf4d7a58c9492a0a13a66
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/table4.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/source/core/data/table4.cxx b/sc/source/core/data/table4.cxx index 16fd34f29529..88d1f6810822 100644 --- a/sc/source/core/data/table4.cxx +++ b/sc/source/core/data/table4.cxx @@ -1298,7 +1298,14 @@ void ScTable::FillAutoSimple( if ( bGetCell ) { if (bVertical) // rInner&:=nRow, rOuter&:=nCol + { aSrcCell = aCol[rCol].GetCellValue(nSource); + if (aSrcCell.meType == CELLTYPE_FORMULA) + { + FillFormulaVertical(*aSrcCell.mpFormula, rInner, rCol, nIStart, nIEnd, pProgress, rProgress); + return; + } + } else // rInner&:=nCol, rOuter&:=nRow aSrcCell = aCol[nSource].GetCellValue(rRow); |