Author: sanda
Date: Wed May 4 22:00:33 2011
New Revision: 38586
URL: http://www.lyx.org/trac/changeset/38586
Log:
Add some more debug info for hunspell, no status entry needed.
Modified:
lyx-devel/branches/BRANCH_2_0_X/src/HunspellChecker.cpp
Modified: lyx-devel/branches/BRANCH_2_0_X/src/HunspellChecker.cpp
==============================================================================
--- lyx-devel/branches/BRANCH_2_0_X/src/HunspellChecker.cpp Wed May 4
20:51:15 2011 (r38585)
+++ lyx-devel/branches/BRANCH_2_0_X/src/HunspellChecker.cpp Wed May 4
22:00:33 2011 (r38586)
@@ -143,10 +143,13 @@
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 @@
if (!haveLanguageFiles(h_path)) {
return false;
}
+ LYXERR(Debug::FILES, " found " << h_path);
hpath = h_path;
return true;
}