summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Glazunov <vg@openoffice.org>2010-10-18 13:21:01 +0200
committerVladimir Glazunov <vg@openoffice.org>2010-10-18 13:21:01 +0200
commit0a7690b5d217ed4936b8f946b6dc0f48778d7b69 (patch)
tree0faab9cde78509694193fd6f2bd67aecddd80178
parenta914be7eb2a0884b10be81bdca9f12b4e38976fa (diff)
parent62d7a41f8488af493968d38fe9a7f3a018366a57 (diff)
#i10000# changes from OOO330 m11
Notes
split repo tag: calc_ooo/DEV300_m90
-rw-r--r--sc/source/core/data/table2.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index 4223c05c4f83..9bb22b68d2ad 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -2255,7 +2255,9 @@ BOOL ScTable::SetRowHeightRange( SCROW nStartRow, SCROW nEndRow, USHORT nNewHeig
{
if (pDrawLayer)
{
- unsigned long nOldHeights = GetRowHeight(nStartRow, nEndRow);
+ // #i115025# When comparing to nNewHeight for the whole range, the height
+ // including hidden rows has to be used (same behavior as 3.2).
+ unsigned long nOldHeights = mpRowHeights->getSumValue(nStartRow, nEndRow);
// FIXME: should we test for overflows?
long nHeightDif = (long) (unsigned long) nNewHeight *
(nEndRow - nStartRow + 1) - nOldHeights;