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

fdo42286 better solution: extend and shrink end of row if needed

üst 4b0dd950
...@@ -544,10 +544,8 @@ void ScDBData::UpdateReference(ScDocument* pDoc, UpdateRefMode eUpdateRefMode, ...@@ -544,10 +544,8 @@ void ScDBData::UpdateReference(ScDocument* pDoc, UpdateRefMode eUpdateRefMode,
void ScDBData::ExtendDataArea(ScDocument* pDoc) void ScDBData::ExtendDataArea(ScDocument* pDoc)
{ {
// Extend the DB area to include data rows immediately below. // Extend the DB area to include data rows immediately below.
SCCOL nCol1a = nStartCol, nCol2a = nEndCol; // or shrink it if all cells are empty
SCROW nRow1a = nStartRow, nRow2a = nEndRow; pDoc->GetDataArea(nTable, nStartCol, nStartRow, nEndCol, nEndRow, false, true);
pDoc->GetDataArea(nTable, nCol1a, nRow1a, nCol2a, nRow2a, true, true);
nEndRow = nRow2a;
} }
namespace { namespace {
......
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