(open_im): Check if the input method has at least one
authorhanda <handa>
Mon, 4 Jun 2007 07:05:17 +0000 (07:05 +0000)
committerhanda <handa>
Mon, 4 Jun 2007 07:05:17 +0000 (07:05 +0000)
state.

src/input.c

index c8997f9..7b9a908 100644 (file)
@@ -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;