Commit 66ffd3c7 authored by C. Boemann's avatar C. Boemann

Make spellchinking work with more dictionaries.

I believe this fixes a long standing bug for many people why spellchecking doesn't work
parent e2dfed9b
......@@ -47,6 +47,7 @@ BgSpellCheck::BgSpellCheck(QObject *parent)
void BgSpellCheck::setDefaultLanguage(const QString &language)
{
m_defaultCountry = "";
m_defaultLanguage = language;
int index = m_defaultLanguage.indexOf('_');
if (index > 0) {
......@@ -99,8 +100,10 @@ QString BgSpellCheck::fetchMoreText()
iter = block.begin();
while (!iter.atEnd() && iter.fragment().position() + iter.fragment().length() <=
m_currentPosition)
m_currentPosition) {
++iter;
}
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment