From 28d7510e1cf1b169c82d8d832e0272d94deb9bd9 Mon Sep 17 00:00:00 2001 From: WooHyun Jung Date: Tue, 10 Jan 2012 01:34:22 +0000 Subject: [PATCH] elementary/elm_entry : When theme is changed, pos is set to zero as default. SVN revision: 67008 --- src/lib/elm_entry.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index 810ea76..df2df1c 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -530,7 +530,8 @@ _theme_hook(Evas_Object *obj) edje_object_part_text_input_panel_layout_set(wd->ent, "elm.text", wd->input_panel_layout); edje_object_part_text_autocapital_type_set(wd->ent, "elm.text", wd->autocapital_type); edje_object_part_text_input_panel_enabled_set(wd->ent, "elm.text", wd->input_panel_enable); - elm_entry_cursor_pos_set(obj, wd->cursor_pos); + if (wd->cursor_pos != 0) + elm_entry_cursor_pos_set(obj, wd->cursor_pos); if (elm_widget_focus_get(obj)) edje_object_signal_emit(wd->ent, "elm,action,focus", "elm"); edje_object_message_signal_process(wd->ent); -- 2.7.4