Evas textblock: Don't set style if it's the same.

SVN revision: 57296
This commit is contained in:
Tom Hacohen 2011-02-24 08:43:38 +00:00
parent 38bf6ec94c
commit a8f52f4378
1 changed files with 4 additions and 0 deletions

View File

@ -3902,6 +3902,10 @@ evas_textblock_style_set(Evas_Textblock_Style *ts, const char *text)
Evas_Object *obj;
if (!ts) return;
/* If the style wasn't really changed, abort. */
if ((!ts->style_text && !text) ||
(ts->style_text && text && !strcmp(text, ts->style_text)))
return;
EINA_LIST_FOREACH(ts->objects, l, obj)
{