Bug 442241 First time using spellchecker will use the first dictionary not locale dictionar r=neil

This commit is contained in:
Ginn Chen 2009-06-18 19:16:20 +08:00
parent 2fb756543c
commit b95c4ee869

View File

@ -201,7 +201,7 @@ nsEditorSpellCheck::InitSpellChecker(nsIEditor* aEditor, PRBool aEnableSelection
if (NS_SUCCEEDED(rv) && packageRegistry) {
nsCAutoString utf8DictName;
rv = packageRegistry->GetSelectedLocale(NS_LITERAL_CSTRING("editor"),
rv = packageRegistry->GetSelectedLocale(NS_LITERAL_CSTRING("global"),
utf8DictName);
AppendUTF8toUTF16(utf8DictName, dictName);
}