Evas text: Don't call text_props_info_create if there's no font set.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 1 Feb 2011 12:18:11 +0000 (12:18 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 1 Feb 2011 12:18:11 +0000 (12:18 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@56632 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_text.c

index 6baad89..38f6d70 100644 (file)
@@ -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,