diff options
author | Laurent Godard <lgodard.libre@laposte.net> | 2015-07-09 17:00:54 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-07-09 22:45:49 +0000 |
commit | ebdc15f93587b59a79a5104f8358841a28940a82 (patch) | |
tree | b77c4fb35b3fce3bff90bcc84a00ebe6c00c257e /sc/source/ui/view/viewdata.cxx | |
parent | 6b60f9f0b6362a6ebbbc167f26541672824bcd3a (diff) |
init maTabData to the correct tab size tdf#92629
Change-Id: I6b226f8e992b3a2b6bcebc44b36ca1f2f06a128e
Reviewed-on: https://gerrit.libreoffice.org/16894
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source/ui/view/viewdata.cxx')
-rw-r--r-- | sc/source/ui/view/viewdata.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx index b294c743374a..5569d0c53e38 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(); } |