ecore null complaint fix if imf not there.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 19 Jun 2012 07:14:59 +0000 (07:14 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 19 Jun 2012 07:14:59 +0000 (07:14 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/terminology@72445 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/termio.c

index eb545df..a67595f 100644 (file)
@@ -485,7 +485,8 @@ _imf_cursor_set(Termio *sd)
    /* TODO */
    Evas_Coord cx, cy, cw, ch;
    evas_object_geometry_get(sd->cur.obj, &cx, &cy, &cw, &ch);
-   ecore_imf_context_cursor_location_set(sd->imf, cx, cy, cw, ch);
+   if (sd->imf)
+     ecore_imf_context_cursor_location_set(sd->imf, cx, cy, cw, ch);
    /*
    ecore_imf_context_cursor_position_set(sd->imf, 0); // how to get it?
    */