Abdelrazak Younes <[EMAIL PROTECTED]> writes:
| Index: aspell.C
| ===================================================================
| --- aspell.C (revision 14911)
| +++ aspell.C (working copy)
| @@ -23,9 +23,18 @@
| using std::string;
|
|
| -ASpell::ASpell(BufferParams const &, string const & lang)
| +ASpell::ASpell(string const & lang)
| : els(0), spell_error_object(0)
| {
| + if (!lang.empty())
| + addSpeller(lang);
| +}
| +
| +
| +void ASpell::reset(string const & lang)
| +{
| + els = 0;
| + spell_error_object =0;
space after =
| Index: frontends/controllers/ControlSpellchecker.C
| ===================================================================
| --- frontends/controllers/ControlSpellchecker.C (revision 14911)
| +++ frontends/controllers/ControlSpellchecker.C (working copy)
| @@ -96,7 +98,15 @@
| {
| lyxerr[Debug::GUI] << "Spellchecker::initialiseParams" << endl;
|
| +#if defined(USE_ASPELL)
| + string lang = (lyxrc.isp_use_alt_lang)
| + ? lyxrc.isp_alt_lang
| + : kernel().buffer().params().language->code();
| + static_cast<ASpell *>(speller_.get())->reset(lang);
Perhaps speller_ should be changed to a shared_ptr, so that we can use
the nicer pointer_cast.
--
Lgb