Bug 321487: Crash when moving caret backwards over text frame consisting of a single CR [nsTextFrame::PeekOffset]. r=rbs sr=bzbarsky

This commit is contained in:
uriber%gmail.com 2005-12-27 15:15:40 +00:00
parent d3775d717f
commit 86ce7a1abf

View File

@ -2116,13 +2116,11 @@ nsTextFrame::PrepareUnicodeText(nsTextTransformer& aTX,
// Get the next word
bp = aTX.GetNextWord(inWord, &wordLen, &contentLen, &isWhitespace, &wasTransformed);
if (nsnull == bp) {
#ifdef IBMBIDI
if (indexp && (mState & NS_FRAME_IS_BIDI) ) {
if (indexp) {
while (--n >= 0) {
*indexp++ = strInx++;
*indexp++ = strInx;
}
}
#endif // IBMBIDI
break;
}
// for ::first-letter or bidi, the content may be chopped