fix bug 687319 spell check dialog for mailnews broken, r=ehsan

This commit is contained in:
David Bienvenu 2011-09-23 12:51:33 -07:00
parent 6b99a745fc
commit 6a703368e0

View File

@ -388,7 +388,10 @@ mozSpellChecker::SetCurrentDictionary(const nsAString &aDictionary)
nsCOMPtr<mozIPersonalDictionary> personalDictionary = do_GetService("@mozilla.org/spellchecker/personaldictionary;1");
mSpellCheckingEngine->SetPersonalDictionary(personalDictionary.get());
return NS_OK;
nsXPIDLString language;
nsCOMPtr<mozISpellI18NManager> serv(do_GetService("@mozilla.org/spellchecker/i18nmanager;1", &rv));
NS_ENSURE_SUCCESS(rv, rv);
return serv->GetUtil(language.get(),getter_AddRefs(mConverter));
}
}