]> git.lyx.org Git - lyx.git/blobdiff - src/LyX.cpp
remove indirection from LyXView::viewStatusMessage().
[lyx.git] / src / LyX.cpp
index f09edcdda24f483cb56469e4fb9ea4c88d5f4cce..7f2c6f3c91dce4fe66f4a19fef4398d5cfd8bdd4 100644 (file)
@@ -132,7 +132,8 @@ struct LyX::Impl
 
        ~Impl()
        {
-               delete spell_checker_;
+               delete aspell_checker_;
+               delete hunspell_checker_;
        }
 
        /// our function handler
@@ -226,7 +227,6 @@ LyX::LyX()
 {
        singleton_ = this;
        pimpl_ = new Impl;
-       setSpellChecker();
 }
 
 
@@ -750,7 +750,7 @@ bool LyX::init()
        if (!LyXSetStyle())
                return false;
        //...and the modules
-       moduleList.read();
+       theModuleList.read();
 
        // read keymap and ui files in batch mode as well
        // because InsetInfo needs to know these to produce
@@ -1274,6 +1274,8 @@ CmdDef & theTopLevelCmdDef()
 
 SpellChecker * theSpellChecker()
 {
+       if (!singleton_->pimpl_->spell_checker_)
+               setSpellChecker();
        return singleton_->pimpl_->spell_checker_;
 }