sc/source/ui/view/gridwin4.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit bd63faaedc6d268ca1f4552aa6d18fc74e23809c Author: Ashod Nakashian <ashod.nakash...@collabora.co.uk> Date: Wed Jun 1 10:07:59 2016 -0400 LOK: calc tile rendering Change-Id: I122922ac18a652dbbce01932eaaad92ded45098d Reviewed-on: https://gerrit.libreoffice.org/25782 Reviewed-by: Ashod Nakashian <ashnak...@gmail.com> Tested-by: Ashod Nakashian <ashnak...@gmail.com> diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index 850cf9a..a255b58 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -1051,7 +1051,8 @@ void ScGridWindow::PaintTile( VirtualDevice& rDevice, firstCol = (firstCol >= 0 ? firstCol : nStartCol); lastCol = (lastCol >= 0 ? lastCol : nEndCol); - ScTableInfo aTabInfo(nEndRow + 3); + auto capacity = std::min(nEndRow + 3, 1002); + ScTableInfo aTabInfo(capacity); pDoc->FillInfo(aTabInfo, nStartCol, nStartRow, lastCol, lastRow, nTab, fPPTX, fPPTY, false, false, NULL); ScOutputData aOutputData(&rDevice, OUTTYPE_WINDOW, aTabInfo, pDoc, nTab, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits