sc/source/core/data/fillinfo.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 861e83d1e74a718462ba524695cfa6ccb13bf7db Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Tue Jan 23 11:05:31 2024 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Tue Jan 23 12:51:55 2024 +0100 we seem to need three extra rows in ScTableInfo or we get lots of OSL_FAIL("FillInfo: Range too big" ); from initRowInfo() regression from commit a86c00414a43c5d87981ffae1018cb242c5e5e1d Author: Noel Grandin <noel.gran...@collabora.co.uk> Date: Fri Jan 19 14:27:10 2024 +0200 cool#6893 reduce allocation in ScGridWindow::PaintTile Change-Id: I44a925ffab756e52c49280b864a3d4190e9e9b49 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162431 Reviewed-by: Michael Meeks <michael.me...@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> (cherry picked from commit 3e865d91e1bb4396957b5feee3c4475838c70e8b) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162389 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sc/source/core/data/fillinfo.cxx b/sc/source/core/data/fillinfo.cxx index 31e7e10041ea..1f97801b1737 100644 --- a/sc/source/core/data/fillinfo.cxx +++ b/sc/source/core/data/fillinfo.cxx @@ -1072,16 +1072,16 @@ void ScDocument::FillInfo( rArray.MirrorSelfX(); } -/// We seem to need to allocate two extra rows here, not sure why +/// We seem to need to allocate three extra rows here, not sure why /// ScTableInfo::ScTableInfo(SCROW nStartRow, SCROW nEndRow) : mnArrCount(0) - , mnArrCapacity(nEndRow - nStartRow + 3) + , mnArrCapacity(nEndRow - nStartRow + 4) , mbPageMode(false) { assert(nStartRow >= 0); assert(nEndRow >= nStartRow); - mpRowInfo.reset(new RowInfo[nEndRow - nStartRow + 3] {}); + mpRowInfo.reset(new RowInfo[nEndRow - nStartRow + 4] {}); } ScTableInfo::~ScTableInfo()