mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
bug 866544 - ignore break position at end-of-text returned by UCFindTextBreak. r=smontagu
This commit is contained in:
parent
454f28ead0
commit
519ff70080
@ -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