Re-implement DB area extension prior to autofilter launching.
This time store the extended DB area permanently. This makes things a bit simpler.
This commit is contained in:
parent
0a89e8789f
commit
03417cf345
1 changed files with 9 additions and 0 deletions
|
@ -1354,6 +1354,15 @@ sal_Bool ScDocument::GetFilterEntries(
|
|||
SCCOL nEndCol;
|
||||
SCROW nEndRow;
|
||||
pDBData->GetArea( nAreaTab, nStartCol, nStartRow, nEndCol, nEndRow );
|
||||
|
||||
// Extend the DB area to include data rows immediately below.
|
||||
// Note that the change is stored back to the DB.
|
||||
SCCOL nCol1a = nStartCol, nCol2a = nEndCol;
|
||||
SCROW nRow1a = nStartRow, nRow2a = nEndRow;
|
||||
GetDataArea(nTab, nCol1a, nRow1a, nCol2a, nRow2a, false, false);
|
||||
nEndRow = nRow2a;
|
||||
pDBData->SetArea(nTab, nStartCol, nStartRow, nEndCol, nEndRow);
|
||||
|
||||
if (pDBData->HasHeader())
|
||||
++nStartRow;
|
||||
|
||||
|
|
Loading…
Reference in a new issue