summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchenxiajian <chenxiajian1985@gmail.com>2011-08-14 15:05:48 +0000
committerchenxiajian <chenxiajian1985@gmail.com>2011-08-14 15:05:48 +0000
commit64366ecc5831736b30452cb3833b422b0caa2251 (patch)
tree84fdf03566836a8ea684d02c5e3e398cd0ed1078
parent546bfcf577ed29e02e6ac8f7374da86078b997b8 (diff)
downloadenchant-64366ecc5831736b30452cb3833b422b0caa2251.tar.gz
dealt with no m_dict->tag
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/branches/gsoc2011hyphenation@30211 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r--src/ispell/ispell_checker.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ispell/ispell_checker.cpp b/src/ispell/ispell_checker.cpp
index bc61a00..e078307 100644
--- a/src/ispell/ispell_checker.cpp
+++ b/src/ispell/ispell_checker.cpp
@@ -563,7 +563,9 @@ ispell_dict_hyphenate (EnchantDict * me, const char *const word)
ISpellChecker * checker;
checker = (ISpellChecker *) me->user_data;
- return checker->hyphenate (word,me->tag);
+ if(me->tag!="")
+ return checker->hyphenate (word,me->tag);
+ return checker->hyphenate (word,"en_us");
}