From d42947291e1bd69587e0726ecae098ddcd8ae088 Mon Sep 17 00:00:00 2001 From: "pkw%us.ibm.com" Date: Tue, 20 Jul 2004 15:53:35 +0000 Subject: [PATCH] Bug 243931 - GTK2 build on AIX: Caret misplaced when inserting RTL input into LTR text. Patch contributed by Lina Kemmel . r=smontagu@smontagu.org, sr=roc@ocallahan.org --- editor/libeditor/html/nsHTMLEditRules.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/libeditor/html/nsHTMLEditRules.cpp b/editor/libeditor/html/nsHTMLEditRules.cpp index e107be502063..46f8a3fe3266 100644 --- a/editor/libeditor/html/nsHTMLEditRules.cpp +++ b/editor/libeditor/html/nsHTMLEditRules.cpp @@ -400,7 +400,8 @@ nsHTMLEditRules::AfterEdit(PRInt32 action, nsIEditor::EDirection aDirection) * * So we set the cursor Bidi level to UNDEFINED here, and the caret code will set it correctly later */ - if (action == nsEditor::kOpInsertText) { + if (action == nsEditor::kOpInsertText + || action == nsEditor::kOpInsertIMEText) { nsCOMPtr shell; mEditor->GetPresShell(getter_AddRefs(shell)); if (shell) {