From 2ff683a3d697f76f51c6a23f0e2682f8d92ffa7a Mon Sep 17 00:00:00 2001 From: "mozilla.mano%sent.com" Date: Sat, 16 Jul 2005 19:58:26 +0000 Subject: [PATCH] Bug 299838 - BiDi: Caret disappears outside the end of lines that end with spaces. patch from Uri Bernstein , r=smontagu, sr=roc, a=bsmedberg. git-svn-id: svn://10.0.0.236/trunk@176172 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsTextFrame.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mozilla/layout/generic/nsTextFrame.cpp b/mozilla/layout/generic/nsTextFrame.cpp index e5aec76f365..be12d0bfe6f 100644 --- a/mozilla/layout/generic/nsTextFrame.cpp +++ b/mozilla/layout/generic/nsTextFrame.cpp @@ -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