[evolution/evolution-3-12] 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/evolution-3-12] Bug 739708 - Spell checking shows words with umlauts as false positives
- Date: Tue, 11 Nov 2014 12:48:46 +0000 (UTC)
commit 18628731d586ad703fecefb296a7e61e91d9886b
Author: Milan Crha <mcrha redhat com>
Date: Tue Nov 11 13:48:43 2014 +0100
Bug 739708 - Spell checking shows words with umlauts as false positives
e-util/e-spell-entry.c | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/e-util/e-spell-entry.c b/e-util/e-spell-entry.c
index 75c7a6a..00e27f2 100644
--- a/e-util/e-spell-entry.c
+++ b/e-util/e-spell-entry.c
@@ -66,6 +66,8 @@ word_misspelled (ESpellEntry *entry,
const gchar *text;
gchar *word;
gboolean result = TRUE;
+ GSList *li;
+ gssize wlen;
if (start == end)
return FALSE;
@@ -75,16 +77,13 @@ word_misspelled (ESpellEntry *entry,
g_strlcpy (word, text + start, end - start + 1);
- if (g_unichar_isalpha (*word)) {
- GSList *li;
- gssize wlen = strlen (word);
+ wlen = strlen (word);
- for (li = entry->priv->checkers; li; li = g_slist_next (li)) {
- GtkhtmlSpellChecker *checker = li->data;
- if (gtkhtml_spell_checker_check_word (checker, word, wlen)) {
- result = FALSE;
- break;
- }
+ for (li = entry->priv->checkers; li; li = g_slist_next (li)) {
+ GtkhtmlSpellChecker *checker = li->data;
+ if (gtkhtml_spell_checker_check_word (checker, word, wlen)) {
+ result = FALSE;
+ break;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]