Evas font: Revert "evas/font - removed an unusefull handling."
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 22 Aug 2011 11:51:18 +0000 (11:51 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 22 Aug 2011 11:51:18 +0000 (11:51 +0000)
This reverts commit 62684.

This is needed to verify we don't access info->ot when info is NULL.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@62691 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/engines/common/evas_font_default_walk.x

index 73d187b..56807b8 100644 (file)
@@ -22,8 +22,8 @@
 /* Visual walk helper macros */
 #ifdef OT_SUPPORT
 #define _EVAS_FONT_WALK_TEXT_START() \
-        Evas_Font_OT_Info *_ot_itr = \
-           text_props->info->ot + text_props->start; \
+        Evas_Font_OT_Info *_ot_itr = (text_props->info) ? \
+           text_props->info->ot + text_props->start : NULL; \
         for (char_index = 0 ; char_index < text_props->len ; char_index++, _glyph_itr++, _ot_itr++) \
           {
 #else