Fix build warning 58/79958/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 13 Jul 2016 14:58:41 +0000 (23:58 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 13 Jul 2016 14:58:41 +0000 (23:58 +0900)
Change-Id: Ib58203a1ad381805b8810414afc6afb4853cea1e

ism/extras/wayland_immodule/wayland_imcontext.c

index 22e6b05..deb72d3 100644 (file)
@@ -1658,12 +1658,12 @@ wayland_im_context_preedit_string_with_attributes_get(Ecore_IMF_Context  *ctx,
             }
         }
         else {
-            if (str) {
+            if (imcontext->preedit_text) {
                 Ecore_IMF_Preedit_Attr *attr = calloc(1, sizeof(*attr));
                 // use REVERSE style as default
                 attr->preedit_type = ECORE_IMF_PREEDIT_TYPE_SUB2;
                 attr->start_index = 0;
-                attr->end_index = strlen(str);
+                attr->end_index = strlen(imcontext->preedit_text);
                 *attrs = eina_list_append(*attrs, attr);
             }
         }