Forgot to change fromOffset to currentOffset in one place. WidthBuffer could not work right with multi byte characters
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9434 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
afad65ded7
commit
afcf990925
@ -109,7 +109,7 @@ _BWidthBuffer_::StringWidth(const char *inText, int32 fromOffset, int32 length,
|
||||
currentOffset < fromOffset + length;
|
||||
currentOffset += charLen) {
|
||||
|
||||
charLen = UTF8NextCharLen(inText + fromOffset);
|
||||
charLen = UTF8NextCharLen(inText + currentOffset);
|
||||
// End of string, bail out
|
||||
if (charLen == 0)
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user