and only remove markup if we have a style...

SVN revision: 37661
This commit is contained in:
Carsten Haitzler 2008-11-15 13:57:37 +00:00
parent 7e6fb27b4c
commit 3e2108728f
1 changed files with 6 additions and 3 deletions

View File

@ -2532,9 +2532,12 @@ evas_object_textblock_style_set(Evas_Object *obj, Evas_Textblock_Style *ts)
if ((ts) && (ts->delete_me)) return;
if (o->markup_text)
{
free(o->markup_text);
o->markup_text = NULL;
evas_object_textblock_text_markup_get(obj);
if (o->style)
{
free(o->markup_text);
o->markup_text = NULL;
evas_object_textblock_text_markup_get(obj);
}
}
if (o->style)
{