Kaydet (Commit) 88611e70 authored tarafından Pierre-André Jacquod's avatar Pierre-André Jacquod

fdo#42286 call correctly GetDataArea to avoid unwanted shrinking

GetDataArea flags documented and call from ExtendedDataArea adapted.
üst c3dc0189
......@@ -741,9 +741,12 @@ bool ScTable::GetDataStart( SCCOL& rStartCol, SCROW& rStartRow ) const
void ScTable::GetDataArea( SCCOL& rStartCol, SCROW& rStartRow, SCCOL& rEndCol, SCROW& rEndRow,
bool bIncludeOld, bool bOnlyDown ) const
{
bool bLeft = false;
// bIncludeOld = true ensure that the returned area contains at least the initial area,
// independently of the case if this area has empty rows / columns at its borders
// bOnlyDown = true means extend the inputed area only down, i.e increase only rEndRow
bool bLeft = false;
bool bRight = false;
bool bTop = false;
bool bTop = false;
bool bBottom = false;
bool bChanged;
bool bFound;
......
......@@ -548,7 +548,7 @@ void ScDBData::ExtendDataArea(ScDocument* pDoc)
// Extend the DB area to include data rows immediately below.
SCCOL nCol1a = nStartCol, nCol2a = nEndCol;
SCROW nRow1a = nStartRow, nRow2a = nEndRow;
pDoc->GetDataArea(nTable, nCol1a, nRow1a, nCol2a, nRow2a, false, false);
pDoc->GetDataArea(nTable, nCol1a, nRow1a, nCol2a, nRow2a, true, true);
nEndRow = nRow2a;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment