summaryrefslogtreecommitdiff
path: root/sc/inc/mtvfunctions.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-02-10 22:34:35 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-02-10 22:40:33 -0500
commit1da03a88a98b50633d61557de27e4c0702a665eb (patch)
tree525e318d328da79e7ff3c2af0df42581f5d2fb07 /sc/inc/mtvfunctions.hxx
parentbe32e707859b3a80766ac29eb5879da3c07544bf (diff)
fdo#74209: This search algorithm had another issue. This fixes it.
When the search range was i.e. 1-3, and the match was found at 5, the old code would return 5 when in fact it should have failed. This change would honor the end position and limit the search within specified search range. Change-Id: If12a92fd3930ad128a5b0699a1addd96fb3a8eba
Diffstat (limited to 'sc/inc/mtvfunctions.hxx')
-rw-r--r--sc/inc/mtvfunctions.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/inc/mtvfunctions.hxx b/sc/inc/mtvfunctions.hxx
index 6955d21c3c5a..fdf79fa017f9 100644
--- a/sc/inc/mtvfunctions.hxx
+++ b/sc/inc/mtvfunctions.hxx
@@ -618,7 +618,7 @@ FindElement2(
break;
default:
{
- ElseRetType aRet = rFuncElse(*it, nOffset);
+ ElseRetType aRet = rFuncElse(*it, nOffset, nDataSize);
if (aRet.second)
return PositionType(it, aRet.first);
}