Commits

Niklas Nebel  committed 67a4172

calc60: #i115025# SetRowHeightRange: compare height directly to mpRowHeights sum value

  • Participants
  • Parent commits 53468ce

Comments (0)

Files changed (1)

File sc/source/core/data/table2.cxx

 		{
 			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;