From e9274a025165e5792c0e3370309ac9e16e3fcd24 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Tue, 2 Feb 2016 17:38:19 +0900 Subject: [PATCH] Fix bug cursor position is always equal to 0 in show callback Change-Id: Iff03783d554161f205d4f6b4a9ede5557c9d25dc --- ism/extras/efl_wsc/isf_wsc_control_ui.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ism/extras/efl_wsc/isf_wsc_control_ui.cpp b/ism/extras/efl_wsc/isf_wsc_control_ui.cpp index 85dd5cb..daa59f9 100644 --- a/ism/extras/efl_wsc/isf_wsc_control_ui.cpp +++ b/ism/extras/efl_wsc/isf_wsc_control_ui.cpp @@ -133,8 +133,7 @@ void isf_wsc_context_input_panel_show (WSCContextISF* ctx) context_scim_imdata_get (ctx, (void *)imdata, &iseContext.imdata_size); /* set the cursor position of the editable widget */ - //ecore_imf_context_surrounding_get (ctx, NULL, &iseContext.cursor_pos); - iseContext.cursor_pos = 0; + wsc_context_surrounding_get (ctx->ctx, NULL, &iseContext.cursor_pos); iseContext.autocapital_type = wsc_context_autocapital_type_get (ctx->ctx); -- 2.7.4