From 0f1ebd83972330a394fa29ba61ce4a841197e53c Mon Sep 17 00:00:00 2001 From: tasn Date: Mon, 22 Aug 2011 11:51:18 +0000 Subject: [PATCH] Evas font: Revert "evas/font - removed an unusefull handling." This reverts commit 62684. This is needed to verify we don't access info->ot when info is NULL. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@62691 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/engines/common/evas_font_default_walk.x | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/engines/common/evas_font_default_walk.x b/src/lib/engines/common/evas_font_default_walk.x index 73d187b..56807b8 100644 --- a/src/lib/engines/common/evas_font_default_walk.x +++ b/src/lib/engines/common/evas_font_default_walk.x @@ -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 -- 2.7.4