]> git.lyx.org Git - lyx.git/blobdiff - src/AspellChecker.cpp
Let getPosNearX take horizontal scrolling into account
[lyx.git] / src / AspellChecker.cpp
index ad4ca976e89311f636dff4eb754afee0af40571c..c4b24199940fa2146418638e50024b11abf0694e 100644 (file)
@@ -219,7 +219,7 @@ AspellConfig * AspellChecker::Private::getConfig(string const & lang, string con
        }
        if (!have_dict) {
                // check for package data of OS installation
-               have_dict = checkAspellData(config, osPackageBase(), osPackageDataDirectory(), osPackageDictDirectory(), lang, variety);
+               checkAspellData(config, osPackageBase(), osPackageDataDirectory(), osPackageDictDirectory(), lang, variety);
        }
        return config ;
 }
@@ -357,6 +357,8 @@ SpellChecker::Result AspellChecker::Private::check(
 {
        SpellChecker::Result result = WORD_OK;
        docstring w1;
+       LYXERR(Debug::GUI, "spellCheck: \"" <<
+                  word.word() << "\", lang = " << word.lang()->lang()) ;
        docstring rest = split(word.word(), w1, '-');
        for (; result == WORD_OK;) {
                string const word_str = toAspellWord(w1);