From 8a14ea8b583649510dc7db4d3054c7657a9874de Mon Sep 17 00:00:00 2001 From: Jody Goldberg Date: Wed, 15 Sep 2010 11:22:37 +0200 Subject: sc-filters-fill-fix.diff: fix Autofill doesnt fill filtered rows bxc#62499 --- sc/source/core/data/table4.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sc/source') 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(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(nCol), static_cast(nRow), nTab ); aCol[nCol].Insert( aDestPos.Row(), pSrcCell->CloneWithoutNote( *pDocument ) ); } -- cgit