diff options
author | <urmaslt@svn.abisource.com> | 2011-04-19 22:59:33 +0000 |
---|---|---|
committer | <urmaslt@svn.abisource.com> | 2011-04-19 22:59:33 +0000 |
commit | c04611f122f6e1674097c38f39871c2f7a59d774 (patch) | |
tree | 094dd31dbc1e57f9e48c27fe22d4ca48eabe1283 | |
parent | 7fa83de5caded4a2b0cc3c2b95025ca85180f65e (diff) | |
download | enchant-c04611f122f6e1674097c38f39871c2f7a59d774.tar.gz |
Fixed loading of empty word from pwl
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@29721 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r-- | src/pwl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -331,7 +331,7 @@ static void enchant_pwl_refresh_from_file(EnchantPWL* pwl) continue; } - if( line[0] != '#') + if( line[0] && line[0] != '#') { if(g_utf8_validate(line, -1, NULL)) enchant_pwl_add_to_trie(pwl, line, strlen(line)); @@ -676,7 +676,7 @@ static void enchant_pwl_case_and_denormalize_suggestions(EnchantPWL *pwl, suggestion = g_hash_table_lookup (pwl->words_in_trie, suggs_list->suggs[i]); suggestion_len = strlen(suggestion); - + if(utf8_case_convert_function && !enchant_is_all_caps(suggestion, suggestion_len)) { |