diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2016-06-01 10:07:59 -0400 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2016-06-01 14:09:13 +0000 |
commit | bd63faaedc6d268ca1f4552aa6d18fc74e23809c (patch) | |
tree | 2342ba17d041e493ba0e6fbdfc95eb79e2a8746b /sc | |
parent | c47077f1449abf043237d64f078b7aaf5f634b84 (diff) |
LOK: calc tile rendering
Change-Id: I122922ac18a652dbbce01932eaaad92ded45098d
Reviewed-on: https://gerrit.libreoffice.org/25782
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/gridwin4.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index 850cf9acf3b5..a255b58c1141 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, |