diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2021-07-02 14:18:07 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-07-03 11:36:10 +0700 |
commit | 451e8351370adc9487175886cffd57f01e666ca8 (patch) | |
tree | 7d1456864119c9eb407c01476518a00f9707e781 /office/abiword/enchant-2.1.patch | |
parent | 116c9cc4aad68169362fdc1c4606c722e9b70fef (diff) | |
download | slackbuilds-451e8351370adc9487175886cffd57f01e666ca8.tar.gz slackbuilds-451e8351370adc9487175886cffd57f01e666ca8.tar.xz |
office/abiword: Patched for the newer enchant.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to '')
-rw-r--r-- | office/abiword/enchant-2.1.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/office/abiword/enchant-2.1.patch b/office/abiword/enchant-2.1.patch new file mode 100644 index 0000000000..010aac1009 --- /dev/null +++ b/office/abiword/enchant-2.1.patch @@ -0,0 +1,29 @@ +--- abiword-3.0.2/src/af/xap/xp/enchant_checker.cpp.orig 2013-04-07 13:53:03.000000000 +0000 ++++ abiword-3.0.2/src/af/xap/xp/enchant_checker.cpp 2017-11-19 22:54:41.236180298 +0000 +@@ -127,7 +127,7 @@ + pvSugg->addItem (ucszSugg); + } + +- enchant_dict_free_suggestions (m_dict, suggestions); ++ enchant_dict_free_string_list (m_dict, suggestions); + } + + return pvSugg; +@@ -139,7 +139,7 @@ + + if (word && len) { + UT_UTF8String utf8 (word, len); +- enchant_dict_add_to_personal (m_dict, utf8.utf8_str(), utf8.byteLength()); ++ enchant_dict_add (m_dict, utf8.utf8_str(), utf8.byteLength()); + return true; + } + return false; +@@ -150,7 +150,7 @@ + UT_return_val_if_fail (m_dict, false); + + UT_UTF8String ignore (toCorrect, toCorrectLen); +- return enchant_dict_is_in_session (m_dict, ignore.utf8_str(), ignore.byteLength()) != 0; ++ return enchant_dict_is_added (m_dict, ignore.utf8_str(), ignore.byteLength()) != 0; + } + + void EnchantChecker::ignoreWord (const UT_UCSChar *toCorrect, size_t toCorrectLen) |