From ac59549a7936c49bd5eade89ce6adec518494f1f Mon Sep 17 00:00:00 2001 From: Daniel Hirt Date: Wed, 7 Dec 2016 13:36:56 +0200 Subject: [PATCH] Ui text interactive: fix passing of wrong object --- src/lib/elementary/efl_ui_internal_text_interactive.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/elementary/efl_ui_internal_text_interactive.c b/src/lib/elementary/efl_ui_internal_text_interactive.c index 564b14d..b5ef29b 100644 --- a/src/lib/elementary/efl_ui_internal_text_interactive.c +++ b/src/lib/elementary/efl_ui_internal_text_interactive.c @@ -461,10 +461,13 @@ _focus_in_cb(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj, void { #ifdef HAVE_ECORE_IMF Efl_Ui_Internal_Text_Interactive_Data *en = efl_data_scope_get(obj, MY_CLASS); + Efl_Canvas_Text_Cursor *cur; + if (!en->imf_context) return; + cur = efl_canvas_text_cursor_get(obj); ecore_imf_context_focus_in(en->imf_context); - _entry_imf_cursor_info_set(obj, en); + _entry_imf_cursor_info_set(cur, en); #endif } -- 2.7.4