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
commitd87a5db7dc45280ede513c2bb90bce7bafc69b8c (patch)
treee498b5f486b691f7f12c88eaffbe3f8a2c285d62
parenta4a22345c08879e9d0946a40cefd010c8c64849d (diff)
parentfcd5e60bd75c32931b8f2fc1bb43ab1fb37b6e15 (diff)
#i10000# changes from OOO330 m11ooo/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 c4141cce8..765f8316e 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;