From 513984de6895e56102c4ff11bc2d77c45dede110 Mon Sep 17 00:00:00 2001 From: "smontagu%smontagu.org" Date: Tue, 27 Sep 2005 08:35:05 +0000 Subject: [PATCH] Bug 308023: Bidi: Caret positioned incorrectly after deleting last character of reverse-direction text and then typing. Patch by Uri Bernstein , r+sr=roc git-svn-id: svn://10.0.0.236/trunk@181030 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/libeditor/text/nsTextEditRules.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mozilla/editor/libeditor/text/nsTextEditRules.cpp b/mozilla/editor/libeditor/text/nsTextEditRules.cpp index 8ac1a67054c..1db631fb29e 100644 --- a/mozilla/editor/libeditor/text/nsTextEditRules.cpp +++ b/mozilla/editor/libeditor/text/nsTextEditRules.cpp @@ -399,6 +399,9 @@ nsTextEditRules::WillInsert(nsISelection *aSelection, PRBool *aCancel) nsresult nsTextEditRules::DidInsert(nsISelection *aSelection, nsresult aResult) { + // Attach to the frame now before the caret + nsCOMPtrselPrivate(do_QueryInterface(aSelection)); + selPrivate->SetInterlinePosition(PR_FALSE); return NS_OK; }