From 694013b1aabc61e9e6648f536e6d6ed5d1e967c7 Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 4 Jun 2007 07:05:17 +0000 Subject: [PATCH] (open_im): Check if the input method has at least one state. --- src/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.c b/src/input.c index c8997f9..7b9a908 100644 --- 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; -- 1.7.10.4