Evas text: Don't call text_props_info_create if there's no font set.
authorTom Hacohen <tom@stosb.com>
Tue, 1 Feb 2011 12:18:11 +0000 (12:18 +0000)
committerTom Hacohen <tom@stosb.com>
Tue, 1 Feb 2011 12:18:11 +0000 (12:18 +0000)
SVN revision: 56632

legacy/evas/src/lib/canvas/evas_object_text.c

index 6baad89c6124781e4a4c8dc496600adacc7ce226..38f6d70617e8a3bb2c5894c76f573fa58ffd0fb7 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,