From 5bdddad833729abd5fc70293c1852dd2706c6d11 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Wed, 3 Feb 2010 15:27:57 +0000 Subject: [PATCH] and optimise getting stripped version SVN revision: 45834 --- legacy/elementary/src/lib/elm_entry.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/legacy/elementary/src/lib/elm_entry.c b/legacy/elementary/src/lib/elm_entry.c index 8eed7a6591..25cbcdb6e3 100644 --- a/legacy/elementary/src/lib/elm_entry.c +++ b/legacy/elementary/src/lib/elm_entry.c @@ -1235,6 +1235,8 @@ elm_entry_entry_get(const Evas_Object *obj) if (!wd) return NULL; // Strip ending
that is added by the textblock // need to check if
is present? seems it is always there + if (wd->stripped) return wd->stripped; + text = edje_object_part_text_get(wd->ent, "elm.text"); if (text) s = eina_stringshare_add_length(text, strlen(text) - 4); if (wd->stripped) eina_stringshare_del(wd->stripped);