summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-05-18 19:34:11 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-05-18 19:36:01 +0200
commit13bb6dcddcd3e19cd97fdb28e842c778e6e093b3 (patch)
tree9146ab3a27c3d6064344aeadcc7fa1dd21280f42
parent90d0efb524b2cdd8d65808d18713bfd6b1d117ea (diff)
ensure that number of tabs is correctly set in ScViewData, fdo#45987
Change-Id: Ia77ea939f6ce9301afeabe1d1679998ce34b397e
-rw-r--r--sc/source/ui/view/viewdata.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index b7de81a244a4..71877e83f360 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -2744,6 +2744,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