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

This commit is contained in:
smontagu%smontagu.org 2005-09-27 08:35:05 +00:00
Родитель 5983016e5e
Коммит 3c6dcebbdd
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -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;
}