[evolution] Bug 739708 - Spell checking shows words with umlauts as false positives
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 739708 - Spell checking shows words with umlauts as false positives
- Date: Tue, 11 Nov 2014 12:45:20 +0000 (UTC)
commit 3018d6ad68dc70cbdef985f2266b8464e04bd827
Author: Milan Crha <mcrha redhat com>
Date: Tue Nov 11 13:45:06 2014 +0100
Bug 739708 - Spell checking shows words with umlauts as false positives
e-util/e-spell-entry.c | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/e-util/e-spell-entry.c b/e-util/e-spell-entry.c
index 4993612..f83b0df 100644
--- a/e-util/e-spell-entry.c
+++ b/e-util/e-spell-entry.c
@@ -66,7 +66,8 @@ word_misspelled (ESpellEntry *entry,
{
const gchar *text;
gchar *word;
- gboolean result = TRUE;
+ ESpellChecker *spell_checker;
+ gboolean result;
if (start == end)
return FALSE;
@@ -76,14 +77,8 @@ word_misspelled (ESpellEntry *entry,
g_strlcpy (word, text + start, end - start + 1);
- if (g_unichar_isalpha (*word)) {
- ESpellChecker *spell_checker;
- gssize wlen = strlen (word);
-
- spell_checker = e_spell_entry_get_spell_checker (entry);
- if (e_spell_checker_check_word (spell_checker, word, wlen))
- result = FALSE;
- }
+ spell_checker = e_spell_entry_get_spell_checker (entry);
+ result = !e_spell_checker_check_word (spell_checker, word, -1);
g_free (word);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]