[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - sc/source

Laurent Godard lgodard.libre at laposte.net
Fri Aug 7 05:19:35 PDT 2015


 sc/source/ui/view/viewdata.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 35e449707501c2f19a585fba3efcf1ccd217df6e
Author: Laurent Godard <lgodard.libre at laposte.net>
Date:   Thu Jul 9 17:00:54 2015 +0200

    init maTabData to the correct tab size tdf#92629
    
    Change-Id: I6b226f8e992b3a2b6bcebc44b36ca1f2f06a128e
    Reviewed-on: https://gerrit.libreoffice.org/16894
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    (cherry picked from commit ebdc15f93587b59a79a5104f8358841a28940a82)

diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index 8795afe..04d11f3 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -370,6 +370,12 @@ ScViewData::ScViewData( ScDocShell* pDocSh, ScTabViewShell* pViewSh ) :
         pThisTab = maTabData[nTabNo];
     }
 
+    if (pDoc)
+    {
+        SCTAB nTableCount = pDoc->GetTableCount();
+        EnsureTabDataSize(nTableCount);
+    }
+
     CalcPPT();
 }
 


More information about the Libreoffice-commits mailing list