From 08f7d01df1fac94337344fdb0b8e449579dd6173 Mon Sep 17 00:00:00 2001 From: "mozilla.mano%sent.com" Date: Sun, 18 Sep 2005 14:18:28 +0000 Subject: [PATCH] Bug 308017 - Bidi: up/down-arrow sometimes behave incorrectly after switching keyboard layout. patch from Uri Bernstein , r=smontagu, sr=roc. git-svn-id: svn://10.0.0.236/trunk@180499 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsSelection.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mozilla/layout/generic/nsSelection.cpp b/mozilla/layout/generic/nsSelection.cpp index 3595790c9e1..6cf9c721638 100644 --- a/mozilla/layout/generic/nsSelection.cpp +++ b/mozilla/layout/generic/nsSelection.cpp @@ -7388,6 +7388,11 @@ nsTypedSelection::SelectionLanguageChange(PRBool aLangRTL) else shell->SetCaretBidiLevel(levelAfter); } + + // The caret might have moved, so invalidate the desired X position + // for future usages of up-arrow or down-arrow + mFrameSelection->InvalidateDesiredX(); + return NS_OK; }