evas: don't try to walk if we don't have anything to walk on.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 18 May 2012 03:16:22 +0000 (03:16 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 18 May 2012 03:16:22 +0000 (03:16 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@71221 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/engines/common/evas_font_draw.c

index 83b2807..614e56e 100644 (file)
@@ -69,6 +69,8 @@ evas_common_font_draw_internal(RGBA_Image *dst, RGBA_Draw_Context *dc, int x, in
 
    im = dst->image.data;
 
+   if (!text_props->bin) return ;
+
    glyphs = (void*) eina_binbuf_string_get(text_props->bin);
    length = eina_binbuf_length_get(text_props->bin) / sizeof (Evas_Glyph);
    for (it = 0; it < length; ++it)