[evolution/wip/webkit-composer: 145/262] e_spell_dictionary_check_word: Fix inverted result.



commit d759e5336bb7aaac13ce2445b0f4a0dd08c769bd
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]