Modified to set valid Ecore_IMF_Preedit_Attr's end_index 80/221080/1
authorInHong Han <inhong1.han@samsung.com>
Fri, 27 Dec 2019 03:58:30 +0000 (12:58 +0900)
committerInHong Han <inhong1.han@samsung.com>
Fri, 27 Dec 2019 03:58:30 +0000 (12:58 +0900)
Change-Id: Ifa332c1a9c53082dd5babaf476e750edd6d09181

ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp

index b663147..b284934 100644 (file)
@@ -1911,7 +1911,7 @@ wsc_send_preedit_style (WSCContextISF* wsc_ctx)
 
                                 wl_input_method_context_preedit_styling (wsc_ctx->im_ctx,
                                                                          start_index,
-                                                                         end_index,
+                                                                         end_index - start_index,
                                                                          preedit_style);
 
                                 switch (i->get_value ())
@@ -1951,7 +1951,7 @@ wsc_send_preedit_style (WSCContextISF* wsc_ctx)
 
                             wl_input_method_context_preedit_styling (wsc_ctx->im_ctx,
                                                                      start_index,
-                                                                     end_index,
+                                                                     end_index - start_index,
                                                                      preedit_style);
                         }
                     }