]> git.lyx.org Git - features.git/commitdiff
Delay Spellchecker intanciation until first use.
authorAbdelrazak Younes <younes@lyx.org>
Sun, 9 Aug 2009 14:04:39 +0000 (14:04 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sun, 9 Aug 2009 14:04:39 +0000 (14:04 +0000)
This also solve the problem of the rc entry that was not acknowledged.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30931 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyX.cpp

index f09edcdda24f483cb56469e4fb9ea4c88d5f4cce..1ad3831e0ba90e8d4762261db8d3e6634ac1d68c 100644 (file)
@@ -226,7 +226,6 @@ LyX::LyX()
 {
        singleton_ = this;
        pimpl_ = new Impl;
-       setSpellChecker();
 }
 
 
@@ -1274,6 +1273,8 @@ CmdDef & theTopLevelCmdDef()
 
 SpellChecker * theSpellChecker()
 {
+       if (!singleton_->pimpl_->spell_checker_)
+               setSpellChecker();
        return singleton_->pimpl_->spell_checker_;
 }