mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
* Enchant.cpp: don't crash if dictionary is not found.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33384 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
75bda70d78
commit
625e24128e
@ -44,6 +44,10 @@ Enchant::~Enchant()
|
||||
void Enchant::addSpeller(string const & lang)
|
||||
{
|
||||
enchant::Broker * instance = enchant::Broker::instance();
|
||||
|
||||
if (!instance->dict_exists(lang))
|
||||
return;
|
||||
|
||||
enchant::Dict * dict = instance->request_dict(lang);
|
||||
|
||||
if (dict) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user