Bug 342536 - Backing out _remove the redundant DeleteSelection call_ patch from bug 312778

git-svn-id: svn://10.0.0.236/trunk@200721 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
martijn.martijn%gmail.com
2006-06-23 21:17:59 +00:00
parent e8d3c5cbec
commit 35dbb7e81a

View File

@@ -447,6 +447,7 @@ NS_IMETHODIMP mozInlineSpellChecker::ReplaceWord(nsIDOMNode *aNode, PRInt32 aOff
NS_ENSURE_SUCCESS(res, res);
selection->RemoveAllRanges();
selection->AddRange(range);
editor->DeleteSelection(nsIEditor::eNone);
nsCOMPtr<nsIPlaintextEditor> textEditor(do_QueryReferent(mEditor));
textEditor->InsertText(newword);