From 6c24c4f0becb40ac0450ccdb49c9af4ebcbd581b Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Fri, 18 May 2012 19:34:11 +0200 Subject: ensure that number of tabs is correctly set in ScViewData, fdo#45987 Signed-off-by: Kohei Yoshida Signed-off-by: Petr Mladek Signed-off-by: Noel Power Change-Id: Ia77ea939f6ce9301afeabe1d1679998ce34b397e --- sc/source/ui/view/viewdata.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx index 26c63464dc26..ee7ab0d715d6 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 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 -- cgit v1.2.3