summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-12-13 15:40:38 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-12-13 15:41:23 +0900
commitefe99b08ae665e958a52184a77628caca4db5fab (patch)
treed903465cfcf50c7ede04a2ab628611fd7a564dca
parente5d80f1ced865a70404156fbe08f2ab67f6eabf6 (diff)
text: Fix event info in one case
Dunno how to test... but this seems pretty obvious.
-rw-r--r--src/lib/elementary/efl_ui_internal_text_interactive.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/elementary/efl_ui_internal_text_interactive.c b/src/lib/elementary/efl_ui_internal_text_interactive.c
index f90eeb29d0..936ddd7d1e 100644
--- a/src/lib/elementary/efl_ui_internal_text_interactive.c
+++ b/src/lib/elementary/efl_ui_internal_text_interactive.c
@@ -337,6 +337,7 @@ _entry_imf_event_delete_surrounding_cb(void *data, Ecore_IMF_Context *ctx EINA_U
337 Efl_Ui_Text_Change_Info info = { NULL, 0, 0, 0, 0 }; 337 Efl_Ui_Text_Change_Info info = { NULL, 0, 0, 0, 0 };
338 int cursor_pos; 338 int cursor_pos;
339 int start, end; 339 int start, end;
340 char *tmp;
340 341
341 cursor_pos = evas_textblock_cursor_pos_get(cur); 342 cursor_pos = evas_textblock_cursor_pos_get(cur);
342 343
@@ -350,11 +351,12 @@ _entry_imf_event_delete_surrounding_cb(void *data, Ecore_IMF_Context *ctx EINA_U
350 end = evas_textblock_cursor_pos_get(del_end); 351 end = evas_textblock_cursor_pos_get(del_end);
351 if (start == end) goto end; 352 if (start == end) goto end;
352 353
354 tmp = efl_canvas_text_range_text_get(obj, en->sel_start, en->sel_end);
355
353 info.insert = EINA_FALSE; 356 info.insert = EINA_FALSE;
354 info.position = start; 357 info.position = start;
355 info.length = end - start; 358 info.length = end - start;
356 359 info.content = tmp;
357 char *tmp = efl_canvas_text_range_text_get(obj, en->sel_start, en->sel_end);
358 360
359 efl_event_callback_call(obj, EFL_UI_TEXT_EVENT_CHANGED_USER, &info); 361 efl_event_callback_call(obj, EFL_UI_TEXT_EVENT_CHANGED_USER, &info);
360 362