From a0053979af73bfa4b35b4540ed67f8fc45f2f07a Mon Sep 17 00:00:00 2001 From: cxl Date: Mon, 16 Nov 2009 16:46:46 +0000 Subject: [PATCH] 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 --- uppsrc/RichEdit/Speller.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);