[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.0' - sc/source

Ashod Nakashian ashod.nakashian at collabora.co.uk
Wed Jun 1 14:09:44 UTC 2016


 sc/source/ui/view/gridwin4.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit bd63faaedc6d268ca1f4552aa6d18fc74e23809c
Author: Ashod Nakashian <ashod.nakashian at 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 <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at 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,


More information about the Libreoffice-commits mailing list