summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-02-26 09:07:20 +0000
committerTom Hacohen <tom@stosb.com>2016-02-26 09:14:51 +0000
commit8d9a883f3a953b42920cf289d2d7346a2c7dac2a (patch)
treef718ae6ac728e8e45ee3c96f2e4ff65213d2bb4b
parent00300e7761282cd04a49f8d4f851a670436a3b2f (diff)
downloadefl-8d9a883f3a953b42920cf289d2d7346a2c7dac2a.tar.gz
Edje textblock: Assume textblock knows to deal with setting the same markup.
Edje was trying to be smart and ask textblock for its markup and compare with its own cache before setting it again. This is completely wrong, and textblock is smart enough to deal with it now. @fix
-rw-r--r--src/lib/edje/edje_calc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/edje/edje_calc.c b/src/lib/edje/edje_calc.c
index 17046708b8..4a60ef47df 100644
--- a/src/lib/edje/edje_calc.c
+++ b/src/lib/edje/edje_calc.c
@@ -1564,8 +1564,6 @@ _edje_part_recalc_single_textblock(FLOAT_T sc,
if (stl)
{
- const char *ptxt;
-
if (evas_object_textblock_style_get(ep->object) != stl->style)
evas_object_textblock_style_set(ep->object, stl->style);
// FIXME: need to account for editing
@@ -1575,11 +1573,7 @@ _edje_part_recalc_single_textblock(FLOAT_T sc,
}
else
{
- ptxt = evas_object_textblock_text_markup_get(ep->object);
- if (((!ptxt) && (text)) ||
- ((ptxt) && (text) && (strcmp(ptxt, text))) ||
- ((ptxt) && (!text)))
- evas_object_textblock_text_markup_set(ep->object, text);
+ evas_object_textblock_text_markup_set(ep->object, text);
}
if ((chosen_desc->text.min_x) || (chosen_desc->text.min_y))
{