diff options
author | Eike Rathke <erack@redhat.com> | 2014-02-10 20:00:52 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-02-10 20:53:36 +0100 |
commit | c32e93e561d234e289ce14b88a73368d7862ee47 (patch) | |
tree | 7ef7d839cf30d1e298e7f43fa695883a36da5362 /sc | |
parent | 840accea91da58a4532ff7cf7f5b1eaa501f0b6d (diff) |
actually the extra check isn't needed
The end row will be the maximum of the start row and the last data row
up to the original end row.
Change-Id: I906a5f44f31f333c814b6832767dc3bd0ecd8278
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/table1.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx index 8e6f276fe299..1ba2c2c3b96f 100644 --- a/sc/source/core/data/table1.cxx +++ b/sc/source/core/data/table1.cxx @@ -899,8 +899,8 @@ void ScTable::GetDataArea( SCCOL& rStartCol, SCROW& rStartRow, SCCOL& rEndCol, S if ( !bBottom && rEndRow > 0 && rStartRow < rEndRow ) { SCROW nLastDataRow = GetLastDataRow( rStartCol, rEndCol, rEndRow); - if (nLastDataRow >= 0 && rStartRow <= nLastDataRow && nLastDataRow < rEndRow) - rEndRow = nLastDataRow; + if (nLastDataRow < rEndRow) + rEndRow = std::max( rStartRow, nLastDataRow); } } } |