summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/view/viewdata.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index ceffc1973dca..a82fbd678914 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -502,6 +502,7 @@ ScViewData::~ScViewData() COVERITY_NOEXCEPT_FALSE
void ScViewData::UpdateCurrentTab()
{
+ assert(0 <= nTabNo && static_cast<size_t>(nTabNo) < maTabData.size());
pThisTab = maTabData[nTabNo];
while (!pThisTab)
{