Evas textblock: Don't set style if it's the same.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 24 Feb 2011 08:43:38 +0000 (08:43 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 24 Feb 2011 08:43:38 +0000 (08:43 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@57296 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_textblock.c

index 29dd076..2156d34 100644 (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)
      {