From 3c6dcebbdd0e3f39742fe53c9cd27ee80da76e9a 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 --- editor/libeditor/text/nsTextEditRules.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/libeditor/text/nsTextEditRules.cpp b/editor/libeditor/text/nsTextEditRules.cpp index 8ac1a67054ce..1db631fb29ee 100644 --- a/editor/libeditor/text/nsTextEditRules.cpp +++ b/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; }