summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2011-02-24 08:43:38 +0000
committerTom Hacohen <tom@stosb.com>2011-02-24 08:43:38 +0000
commita8f52f4378a04b867134a140517064580dec07e6 (patch)
tree1a874b14098ea793bb38b88ca4716d0940aba1b0 /legacy
parent38bf6ec94cfca93deae54a140214b86948d3c71b (diff)
Evas textblock: Don't set style if it's the same.
SVN revision: 57296
Diffstat (limited to 'legacy')
-rw-r--r--legacy/evas/src/lib/canvas/evas_object_textblock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/legacy/evas/src/lib/canvas/evas_object_textblock.c b/legacy/evas/src/lib/canvas/evas_object_textblock.c
index 29dd0765b9..2156d34b61 100644
--- a/legacy/evas/src/lib/canvas/evas_object_textblock.c
+++ b/legacy/evas/src/lib/canvas/evas_object_textblock.c
@@ -3902,6 +3902,10 @@ evas_textblock_style_set(Evas_Textblock_Style *ts, const char *text)
3902 Evas_Object *obj; 3902 Evas_Object *obj;
3903 3903
3904 if (!ts) return; 3904 if (!ts) return;
3905 /* If the style wasn't really changed, abort. */
3906 if ((!ts->style_text && !text) ||
3907 (ts->style_text && text && !strcmp(text, ts->style_text)))
3908 return;
3905 3909
3906 EINA_LIST_FOREACH(ts->objects, l, obj) 3910 EINA_LIST_FOREACH(ts->objects, l, obj)
3907 { 3911 {