Evas textblock: Fixed compilation without fribidi. <-- For real now. :P

SVN revision: 51809
This commit is contained in:
Tom Hacohen 2010-09-01 14:26:55 +00:00
parent 97b766773b
commit 4554c06a70
2 changed files with 6 additions and 0 deletions

View File

@ -1457,7 +1457,9 @@ evas_object_text_new(void)
o = calloc(1, sizeof(Evas_Object_Text));
o->magic = MAGIC_OBJ_TEXT;
o->prev = o->cur;
#ifdef BIDI_SUPPORT
o->cur.intl_props.props = evas_bidi_paragraph_props_new();
#endif
return o;
}
@ -1477,7 +1479,9 @@ evas_object_text_free(Evas_Object *obj)
if (o->cur.font) eina_stringshare_del(o->cur.font);
if (o->cur.source) eina_stringshare_del(o->cur.source);
if (o->engine_data) evas_font_free(obj->layer->evas, o->engine_data);
#ifdef BIDI_SUPPORT
evas_bidi_props_clean(&o->cur.intl_props);
#endif
o->magic = 0;
free(o);
}

View File

@ -5498,8 +5498,10 @@ _evas_textblock_node_text_free(Evas_Object_Textblock_Node_Text *n)
eina_ustrbuf_free(n->unicode);
if (n->utf8)
free(n->utf8);
#ifdef BIDI_SUPPORT
if (&n->bidi_props)
evas_bidi_paragraph_props_unref(n->bidi_props);
#endif
free(n);
}