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
This commit is contained in:
Abdelrazak Younes 2009-08-09 14:04:39 +00:00
parent 697813c491
commit 1a61d10740

View 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_;
}