Kaydet (Commit) 1683f984 authored tarafından Winfried Donkers's avatar Winfried Donkers Kaydeden (comit) Eike Rathke

tdf#107135 fix too tight constraint for FINDB.

Change-Id: I72e7214f14840146305fcb7daec7db89fcf112c9
Reviewed-on: https://gerrit.libreoffice.org/41959Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
üst 2a74f9d8
......@@ -8783,7 +8783,7 @@ void ScInterpreter::ScFindB()
int nLen = getLengthB( aStr );
OUString asStr = GetString().getString();
int nsLen = getLengthB( asStr );
if ( nStart < 1 || nStart > nLen - nsLen )
if ( nStart < 1 || nStart > nLen - nsLen + 1 )
PushIllegalArgument();
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment