diff --git a/uppsrc/RichEdit/Speller.cpp b/uppsrc/RichEdit/Speller.cpp index dc923d7e6..cffdc4bdb 100644 --- a/uppsrc/RichEdit/Speller.cpp +++ b/uppsrc/RichEdit/Speller.cpp @@ -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);