summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Godard <lgodard.libre@laposte.net>2015-07-09 17:00:54 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-08-07 14:18:55 +0200
commit35e449707501c2f19a585fba3efcf1ccd217df6e (patch)
treec248dd418ab3f3c78ed03e6f343f731108774c45
parent89d8ad07c3fe619a0efa809750687e1276668fd4 (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> (cherry picked from commit ebdc15f93587b59a79a5104f8358841a28940a82)
-rw-r--r--sc/source/ui/view/viewdata.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index 8795afe9539a..04d11f3d0d57 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();
}