aspell: test to determine if error was caused by missing dictionary was wrong

This commit is contained in:
Jean-Francois Dockes 2012-11-18 08:22:53 +01:00
parent 69974a6085
commit fbadf681b0

View File

@ -321,7 +321,7 @@ bool Aspell::buildDict(Rcl::Db &db, string &reason)
args.push_back("dicts");
string dicts;
bool hasdict = false;
if (!cmd.doexec(m_data->m_exec, args, 0, &dicts)) {
if (cmd.doexec(m_data->m_exec, args, 0, &dicts)) {
vector<string> vdicts;
stringToTokens(dicts, vdicts, "\n\r\t ");
if (find(vdicts.begin(), vdicts.end(), m_lang) != vdicts.end()) {