Fix HUnspellChecker when the path is specified with a trailing '/'.

see: http://thread.gmane.org/gmane.editors.lyx.devel/123324

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32356 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-12-05 03:37:05 +00:00
parent 03a0da1a49
commit 3b520b9523

View File

@ -107,7 +107,7 @@ Hunspell * HunspellChecker::Private::addSpeller(string const & lang)
return 0;
}
hunspell_path += "/" + lang;
addName(hunspell_path, lang);
if (!haveLanguageFiles(hunspell_path)) {
// try with '_' replaced by '-'
hunspell_path = subst(hunspell_path, '_', '-');