From b30a564dc2c664b358bf0dc7ba54935fa8459e66 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Wed, 4 May 2011 20:00:33 +0000 Subject: [PATCH] Add some more debug info for hunspell, no status entry needed. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@38586 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/HunspellChecker.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/HunspellChecker.cpp b/src/HunspellChecker.cpp index e055ae6ab6..b2803c9679 100644 --- a/src/HunspellChecker.cpp +++ b/src/HunspellChecker.cpp @@ -143,10 +143,13 @@ bool HunspellChecker::Private::haveDictionary(Language const * lang, string & hp return false; } - LYXERR(Debug::FILES, "check hunspell path: " << hpath << " for language " << lang); + LYXERR(Debug::FILES, "check hunspell path: " << hpath + << " for language " << (lang ? lang->lang() : "NULL" )); + string h_path = addName(hpath, HunspellDictionaryName(lang)); // first we try lang code+variety if (haveLanguageFiles(h_path)) { + LYXERR(Debug::FILES, " found " << h_path); hpath = h_path; return true; } @@ -155,6 +158,7 @@ bool HunspellChecker::Private::haveDictionary(Language const * lang, string & hp if (!haveLanguageFiles(h_path)) { return false; } + LYXERR(Debug::FILES, " found " << h_path); hpath = h_path; return true; } -- 2.39.5