]> git.lyx.org Git - lyx.git/blobdiff - src/ASpell.cpp
Take into account file system case sensitivity when checking whether
[lyx.git] / src / ASpell.cpp
index 74d1313fe69263bf7b8600dbad5a694624d08289..c99ff0498c6eef8117285c5eea6a5b318b390c0f 100644 (file)
 #include "LyXRC.h"
 #include "WordLangTuple.h"
 
-#include "support/assert.h"
+#include "support/lassert.h"
 
 using namespace std;
 
 namespace lyx {
 
-ASpell::ASpell(BufferParams const &, string const & lang)
-       : els(0), spell_error_object(0)
+ASpell::ASpell(): els(0), spell_error_object(0)
 {
-       addSpeller(lang);
 }
 
 
@@ -66,7 +64,7 @@ void ASpell::addSpeller(string const & lang)
        // platforms (cygwin, OS X). Therefore we use utf-8, that does
        // always work.
        aspell_config_replace(config, "encoding", "utf-8");
-       if (lyxrc.isp_accept_compound)
+       if (lyxrc.spellchecker_accept_compound)
                // Consider run-together words as legal compounds
                aspell_config_replace(config, "run-together", "true");
        else