Bug 299838 - BiDi: Caret disappears outside the end of lines that end with spaces. patch from Uri Bernstein <uriber@gmail.com>, r=smontagu, sr=roc, a=bsmedberg.

git-svn-id: svn://10.0.0.236/trunk@176172 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mozilla.mano%sent.com 2005-07-16 19:58:26 +00:00
parent 1064985529
commit 2ff683a3d6

View File

@ -4226,7 +4226,10 @@ nsTextFrame::GetPointFromOffset(nsPresContext* aPresContext,
}
#ifdef IBMBIDI
if (NS_GET_EMBEDDING_LEVEL(this) & 1) {
outPoint->x = mRect.width - width;
if (width > mRect.width)
outPoint->x = 0;
else
outPoint->x = mRect.width - width;
}
else
#endif // IBMBIDI