Bug 274857 Pressing Ctrl+Backspace twice in an RTL textarea crashes the browser

r=roc sr=roc
This commit is contained in:
ginn.chen%sun.com 2004-12-21 05:17:52 +00:00
parent 3014f0bbad
commit f5d4c7abbd

View File

@ -4059,6 +4059,10 @@ nsFrame::GetFrameFromDirection(nsPresContext* aPresContext, nsPeekOffsetStruct *
if (aPos->mDirection == eDirNext)
{
aPos->mPreferLeft = (PRBool)!(aPos->mPreferLeft);//drift to other side
#ifdef IBMBIDI
if (lineIsRTL)
aPos->mAmount = eSelectNoAmount;
#endif
}
}