From 1cd89c7155220ebe3452862fb3acd504276821ce Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 1 Feb 2011 12:18:11 +0000 Subject: [PATCH] Evas text: Don't call text_props_info_create if there's no font set. SVN revision: 56632 --- legacy/evas/src/lib/canvas/evas_object_text.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/legacy/evas/src/lib/canvas/evas_object_text.c b/legacy/evas/src/lib/canvas/evas_object_text.c index 6baad89c61..38f6d70617 100644 --- a/legacy/evas/src/lib/canvas/evas_object_text.c +++ b/legacy/evas/src/lib/canvas/evas_object_text.c @@ -528,11 +528,11 @@ _evas_object_text_item_new(Evas_Object *obj, Evas_Object_Text *o, evas_common_text_props_bidi_set(&it->text_props, o->bidi_par_props, it->text_pos); evas_common_text_props_script_set(&it->text_props, it->text); - ENFN->font_text_props_info_create(ENDT, - o->engine_data, it->text, &it->text_props, - o->bidi_par_props, it->text_pos, len); if (o->engine_data) { + ENFN->font_text_props_info_create(ENDT, + o->engine_data, it->text, &it->text_props, + o->bidi_par_props, it->text_pos, len); ENFN->font_string_size_get(ENDT, o->engine_data, it->text, &it->text_props, -- 2.34.1