[evolution/wip/webkit-composer: 211/372] e_spell_dictionary_check_word: Fix inverted result.
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit-composer: 211/372] e_spell_dictionary_check_word: Fix inverted result.
- Date: Thu, 6 Feb 2014 11:41:14 +0000 (UTC)
commit 469eb4b81433dd4225fe3600ff03925c122603b2
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]