diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-04-09 22:13:24 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-04-11 00:34:47 +0200 |
commit | eefe13c77d01be37c911e75af191717a944fedb3 (patch) | |
tree | 1c4d7e9e698446e95ce9c63ecaf65474e0303913 /sc | |
parent | 091a0dd416171393d939aac924433063a68967b0 (diff) |
shrinking the DB area just causes problems, tdf#89546
Change-Id: Ic7a736141bc78e36c71b639244c6f5cf0d145073
Reviewed-on: https://gerrit.libreoffice.org/36391
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/dbdata.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/tool/dbdata.cxx b/sc/source/core/tool/dbdata.cxx index ccc19bcd1b49..30fe568f8837 100644 --- a/sc/source/core/tool/dbdata.cxx +++ b/sc/source/core/tool/dbdata.cxx @@ -625,9 +625,10 @@ void ScDBData::UpdateReference(ScDocument* pDoc, UpdateRefMode eUpdateRefMode, void ScDBData::ExtendDataArea(ScDocument* pDoc) { // Extend the DB area to include data rows immediately below. - // or shrink it if all cells are empty SCCOL nOldCol1 = nStartCol, nOldCol2 = nEndCol; + SCROW nOldEndRow = nEndRow; pDoc->GetDataArea(nTable, nStartCol, nStartRow, nEndCol, nEndRow, false, true); + nEndRow = std::max(nEndRow, nOldEndRow); if (nStartCol != nOldCol1 || nEndCol != nOldCol2) { SAL_WARN_IF( !maTableColumnNames.empty(), "sc.core", "ScDBData::ExtendDataArea - invalidating column names/offsets"); |