[evolution/webkit-composer: 145/231] e_spell_dictionary_check_word: Fix inverted result.
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit-composer: 145/231] e_spell_dictionary_check_word: Fix inverted result.
- Date: Fri, 13 Sep 2013 14:18:10 +0000 (UTC)
commit edc528de9a1bb0506f34af3a970b66346579919e
Author: Matthew Barnes <mbarnes redhat com>
Date: Sun Jan 20 17:05:26 2013 -0500
e_spell_dictionary_check_word: Fix inverted result.
enchant_dict_check() returns 0 if the word is correctly spelled,
positive if not, negative if error.
e-util/e-spell-dictionary.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-spell-dictionary.c b/e-util/e-spell-dictionary.c
index ce29477..2ecc675 100644
--- a/e-util/e-spell-dictionary.c
+++ b/e-util/e-spell-dictionary.c
@@ -633,7 +633,7 @@ e_spell_dictionary_check_word (ESpellDictionary *dictionary,
spell_checker, e_spell_dictionary_get_code (dictionary));
g_return_val_if_fail (enchant_dict != NULL, TRUE);
- recognized = enchant_dict_check (enchant_dict, word, length);
+ recognized = (enchant_dict_check (enchant_dict, word, length) == 0);
g_object_unref (spell_checker);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]