mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 866544 - ignore break position at end-of-text returned by UCFindTextBreak. r=smontagu
This commit is contained in:
parent
e47507c912
commit
8bbf876cf8
@ -31,7 +31,7 @@ NS_GetComplexLineBreaks(const PRUnichar* aText, uint32_t aLength,
|
||||
aLength,
|
||||
position,
|
||||
&offset);
|
||||
if (status != noErr)
|
||||
if (status != noErr || offset >= aLength)
|
||||
break;
|
||||
aBreakBefore[offset] = true;
|
||||
position = offset;
|
||||
|
Loading…
Reference in New Issue
Block a user