LCL/UTF-8: fix UTF8FindNearestCharStart (it kept looking at the 1st char in the string, assuming wrong start positions for others)

git-svn-id: trunk@18797 -
This commit is contained in:
martin 2009-02-22 19:43:06 +00:00
parent 81d0c46770
commit 9cfd930f46

View File

@ -3227,6 +3227,7 @@ begin
if (BytePos<0) then exit;
inc(Result,CharLen);
if (BytePos=0) then exit;
inc(UTF8Str,CharLen);
end;
end;
end;