diff options
Diffstat (limited to 'abs/extra/lyx/lyx-enchant2.patch')
-rw-r--r-- | abs/extra/lyx/lyx-enchant2.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/abs/extra/lyx/lyx-enchant2.patch b/abs/extra/lyx/lyx-enchant2.patch new file mode 100644 index 0000000..9a8c444 --- /dev/null +++ b/abs/extra/lyx/lyx-enchant2.patch @@ -0,0 +1,37 @@ +diff --git a/lyx-2.2.3/src/EnchantChecker.cpp.orig b/lyx-2.2.3/src/EnchantChecker.cpp +index 7be361a..70d9914 100644 +--- lyx-2.2.3/src/EnchantChecker.cpp.orig ++++ lyx-2.2.3/src/EnchantChecker.cpp +@@ -53,6 +53,8 @@ struct EnchantChecker::Private + + /// the spellers + Spellers spellers_; ++ ++ enchant::Broker instance; + }; + + +@@ -68,12 +70,11 @@ EnchantChecker::Private::~Private() + + enchant::Dict * EnchantChecker::Private::addSpeller(string const & lang) + { +- enchant::Broker * instance = enchant::Broker::instance(); + Speller m; + + try { + LYXERR(Debug::FILES, "request enchant speller for language " << lang); +- m.speller = instance->request_dict(lang); ++ m.speller = instance.request_dict(lang); + } + catch (enchant::Exception & e) { + // FIXME error handling? +@@ -186,8 +187,7 @@ bool EnchantChecker::hasDictionary(Language const * lang) const + { + if (!lang) + return false; +- enchant::Broker * instance = enchant::Broker::instance(); +- return (instance->dict_exists(lang->code())); ++ return (d->instance.dict_exists(lang->code())); + } + + |