Bug 308023: Bidi: Caret positioned incorrectly after deleting last character of reverse-direction text and then typing. Patch by Uri Bernstein <uriber@gmail.com>, r+sr=roc

git-svn-id: svn://10.0.0.236/trunk@181030 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
smontagu%smontagu.org
2005-09-27 08:35:05 +00:00
parent a9b74789ad
commit 513984de68

View File

@@ -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
nsCOMPtr<nsISelectionPrivate>selPrivate(do_QueryInterface(aSelection));
selPrivate->SetInterlinePosition(PR_FALSE);
return NS_OK;
}