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:
Kohei Yoshida 2011-04-01 21:05:08 -04:00
parent 0a89e8789f
commit 03417cf345

View file

@ -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;