summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDom Lachowicz <domlachowicz@gmail.com>2004-07-21 15:03:23 +0000
committerDom Lachowicz <domlachowicz@gmail.com>2004-07-21 15:03:23 +0000
commiteb2a9d63bf8d1b43aa14e4aebcd66cc2e44f43fd (patch)
treeebab74f7744d9e58823beceb86becd33f185fd4c
parent52bb8988bd13ad3ffb241ab5bced43734d0ad934 (diff)
downloadenchant-eb2a9d63bf8d1b43aa14e4aebcd66cc2e44f43fd.tar.gz
fix hspell
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@20943 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r--src/hspell/hspell_provider.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hspell/hspell_provider.c b/src/hspell/hspell_provider.c
index f6b6e87..d548747 100644
--- a/src/hspell/hspell_provider.c
+++ b/src/hspell/hspell_provider.c
@@ -155,7 +155,7 @@ hspell_dict_suggest (EnchantDict * me, const char *const word,
iso_word = g_convert (word, len, "iso8859-8", "utf-8", NULL, &length, NULL);
/* check if hebrew ( if not hebrew cant do anything ) */
- if (iso_word == NULL || !is_hebrew (iso_word))
+ if (iso_word == NULL || !is_hebrew (iso_word, length))
{
if (iso_word != NULL)
g_free (iso_word);
@@ -238,7 +238,7 @@ hspell_provider_dispose_dict (EnchantProvider * me, EnchantDict * dict)
hspell_dict = (struct dict_radix *)dict->user_data;
/* deleting the dict is not posible on hspell ver. < v.0.8 */
-#if (HSPELL_VERSION_MAJOR >= 0) && (HSPELL_VERSION_MINOR >= 8)
+#if (HSPELL_VERSION_MAJOR > 0) || (HSPELL_VERSION_MINOR >= 8)
hspell_uninit (hspell_dict);
#endif
g_free (dict);