summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorJody Goldberg <jody@gnome.org>2010-09-15 11:22:37 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2010-09-15 14:09:37 +0200
commit8a14ea8b583649510dc7db4d3054c7657a9874de (patch)
tree77ac914c95f476e3dcfe0b310a010c175d3c2659 /sc/source
parent66c8185103c1ce07687602bfbd664c9f34ea7df3 (diff)
sc-filters-fill-fix.diff: fix Autofill doesnt fill filtered rows
bxc#62499
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/core/data/table4.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/core/data/table4.cxx b/sc/source/core/data/table4.cxx
index 434144d06e00..38534b4bd31e 100644
--- a/sc/source/core/data/table4.cxx
+++ b/sc/source/core/data/table4.cxx
@@ -1345,6 +1345,8 @@ void ScTable::FillSeries( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
{
for (rInner = nIMin; rInner <= nIMax; rInner++)
{
+ if (pDocument->RowFiltered( rInner, nTab))
+ continue;
ULONG nInd = nActFormCnt;
FillFormula(nInd, bFirst, (ScFormulaCell*)pSrcCell,
static_cast<SCCOL>(nCol), nRow, (rInner == nIEnd) );
@@ -1356,6 +1358,8 @@ void ScTable::FillSeries( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
{
for (rInner = nIMin; rInner <= nIMax; rInner++)
{
+ if (pDocument->RowFiltered( rInner, nTab))
+ continue;
ScAddress aDestPos( static_cast<SCCOL>(nCol), static_cast<SCROW>(nRow), nTab );
aCol[nCol].Insert( aDestPos.Row(), pSrcCell->CloneWithoutNote( *pDocument ) );
}