and optimise getting stripped version

SVN revision: 45834
This commit is contained in:
Carsten Haitzler 2010-02-03 15:27:57 +00:00
parent 1b3cb72426
commit 5bdddad833
1 changed files with 2 additions and 0 deletions

View File

@ -1235,6 +1235,8 @@ elm_entry_entry_get(const Evas_Object *obj)
if (!wd) return NULL;
// Strip ending <br> that is added by the textblock
// need to check if <br> 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);