Revert "Set default preedit style as reverse" 99/79999/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 14 Jul 2016 04:48:07 +0000 (13:48 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 14 Jul 2016 04:59:33 +0000 (13:59 +0900)
Change-Id: I854618e2348ef80033de10b1fb945579b61e2d6e

ism/extras/wayland_immodule/wayland_imcontext.c

index deb72d3..12c1040 100644 (file)
@@ -1650,22 +1650,10 @@ wayland_im_context_preedit_string_with_attributes_get(Ecore_IMF_Context  *ctx,
         Eina_List *l;
         Ecore_IMF_Preedit_Attr *a, *attr;
 
-        if (imcontext->preedit_attrs) {
-            EINA_LIST_FOREACH(imcontext->preedit_attrs, l, a) {
-                attr = malloc(sizeof(*attr));
-                attr = memcpy(attr, a, sizeof(*attr));
-                *attrs = eina_list_append(*attrs, attr);
-            }
-        }
-        else {
-            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(imcontext->preedit_text);
-                *attrs = eina_list_append(*attrs, attr);
-            }
+        EINA_LIST_FOREACH(imcontext->preedit_attrs, l, a) {
+            attr = malloc(sizeof(*attr));
+            attr = memcpy(attr, a, sizeof(*attr));
+            *attrs = eina_list_append(*attrs, attr);
         }
     }