projects
/
m17n
/
m17n-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1491ee9
)
(open_im): Check if the input method has at least one
author
handa
<handa>
Mon, 4 Jun 2007 07:05:17 +0000
(07:05 +0000)
committer
handa
<handa>
Mon, 4 Jun 2007 07:05:17 +0000
(07:05 +0000)
state.
src/input.c
patch
|
blob
|
history
diff --git
a/src/input.c
b/src/input.c
index
c8997f9
..
7b9a908
100644
(file)
--- a/
src/input.c
+++ b/
src/input.c
@@
-3684,7
+3684,7
@@
open_im (MInputMethod *im)
{
MInputMethodInfo *im_info = get_im_info (im->language, im->name, Mnil, Mnil);
- if (! im_info)
+ if (! im_info || ! im_info->states)
MERROR (MERROR_IM, -1);
im->info = im_info;