RichEdit: Spellchecker now searches for .udc first (new format), then .scd

git-svn-id: svn://ultimatepp.org/upp/trunk@1703 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-11-16 16:46:46 +00:00
parent f5d6a7e300
commit a0053979af

View file

@ -142,7 +142,9 @@ Speller *sGetSpeller(int lang)
dir = d;
}
pp << spell_path << ';' << getenv("LIB") << ';' << getenv("PATH") << ';';
String path = GetFileOnPath(LNGAsText(lang) + ".scd", pp);
String path = GetFileOnPath(LNGAsText(lang) + ".udc", pp);
if(IsNull(path))
path = GetFileOnPath(LNGAsText(lang) + ".scd", pp);
if(IsNull(path))
return false;
FileIn in(path);