[evolution/webkit-composer: 149/185] e_spell_dictionary_check_word: Fix inverted result.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit-composer: 149/185] e_spell_dictionary_check_word: Fix inverted result.
- Date: Sat, 13 Apr 2013 15:40:50 +0000 (UTC)
commit 79fd01099dff8ad8f4795e078f0a719778086829
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 file changed, 1 insertion(+), 1 deletion(-)
---
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]