[Libreoffice-commits] .: Branch 'libreoffice-3-5' - sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Fri May 18 11:37:21 PDT 2012


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

New commits:
commit aab5d1e0caed5f65562d5eb4ac78c8467fb7c979
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Fri May 18 19:34:11 2012 +0200

    ensure that number of tabs is correctly set in ScViewData, fdo#45987
    
    Change-Id: Ia77ea939f6ce9301afeabe1d1679998ce34b397e
    Signed-off-by: Kohei Yoshida <kohei.yoshida at gmail.com>

diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index 26c6346..ee7ab0d 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -2737,6 +2737,9 @@ void ScViewData::ReadUserDataSequence(const uno::Sequence <beans::PropertyValue>
     sal_Int32 nTemp32(0);
     sal_Int16 nTemp16(0);
     sal_Bool bPageMode(false);
+
+    EnsureTabDataSize(GetDocument()->GetTableCount()-1);
+
     for (sal_Int32 i = 0; i < nCount; i++)
     {
         // SC_VIEWID has to parse and use by mba


More information about the Libreoffice-commits mailing list