* evas: Fix update of textblock when style change.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 2 Mar 2010 14:53:27 +0000 (14:53 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 2 Mar 2010 14:53:27 +0000 (14:53 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@46786 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_textblock.c

index ba7e664..2cc96f2 100644 (file)
@@ -2506,7 +2506,15 @@ evas_object_textblock_style_set(Evas_Object *obj, Evas_Textblock_Style *ts)
        o->style = NULL;
      }
 
-   evas_object_textblock_text_markup_set(obj, o->markup_text);
+   o->formatted.valid = 0;
+   o->native.valid = 0;
+   o->changed = 1;
+   if (o->markup_text)
+     {
+       free(o->markup_text);
+       o->markup_text = NULL;
+     }
+   evas_object_change(obj);
 }
 
 /**