summaryrefslogtreecommitdiff
path: root/sc/source/core/tool/interpr1.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-06-22 17:36:20 +0200
committerEike Rathke <erack@redhat.com>2017-06-22 17:40:11 +0200
commit23580a95fb5aa5b64d7d767eb0f5a89b0d740460 (patch)
tree646bed8f87e84361b654084ebc6e0cda771af279 /sc/source/core/tool/interpr1.cxx
parent9709798ae416516037011565c151a54831008082 (diff)
assert( nX < nC && nY < nR ); cause of tdf#108292
Change-Id: Iaa23361510b1aa1eebfa6618b526fc7d9d6fa537
Diffstat (limited to 'sc/source/core/tool/interpr1.cxx')
-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