* 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:
Jürgen Spitzmüller 2010-02-09 14:17:34 +00:00
parent 75bda70d78
commit 625e24128e

View File

@ -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) {