summaryrefslogtreecommitdiff
path: root/sc/source/core/tool
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/tool')
-rw-r--r--sc/source/core/tool/interpr1.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index 0cce79baa8b5..7fda5c2cca81 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -7050,6 +7050,7 @@ void ScInterpreter::CalculateLookup(bool bHLookup)
nX = nDelta;
nY = static_cast<SCSIZE>(nZIndex);
}
+ assert( nX < nC && nY < nR );
if ( pMat->IsString( nX, nY) )
PushString(pMat->GetString( nX,nY).getString());
else