summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-12-15 19:29:17 +0100
committerPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-12-28 22:47:33 +0100
commit8818a009bf5947d3d709310ec7fa13a6eb56a9c7 (patch)
tree36d16c7f2b7c447e7c4cdaac16ac115633431a37 /sc
parent4b0dd950b8b79df004238f372fe55993d5ac5981 (diff)
fdo42286 better solution: extend and shrink end of row if needed
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/dbdata.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sc/source/core/tool/dbdata.cxx b/sc/source/core/tool/dbdata.cxx
index 3d60554f1540..3cc4146ca1a3 100644
--- a/sc/source/core/tool/dbdata.cxx
+++ b/sc/source/core/tool/dbdata.cxx
@@ -544,10 +544,8 @@ void ScDBData::UpdateReference(ScDocument* pDoc, UpdateRefMode eUpdateRefMode,
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, true, true);
- nEndRow = nRow2a;
+ // or shrink it if all cells are empty
+ pDoc->GetDataArea(nTable, nStartCol, nStartRow, nEndCol, nEndRow, false, true);
}
namespace {