From 1a61d10740423abba6c7978e42f45942cc7e818d Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sun, 9 Aug 2009 14:04:39 +0000 Subject: [PATCH] Delay Spellchecker intanciation until first use. 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/LyX.cpp b/src/LyX.cpp index f09edcdda2..1ad3831e0b 100644 --- a/src/LyX.cpp +++ b/src/LyX.cpp @@ -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_; }