From e2f4e52ac8a8bf0f806a69e8b1081d45d027cee7 Mon Sep 17 00:00:00 2001 From: David Turner Date: Thu, 21 Mar 2002 15:00:13 +0000 Subject: [PATCH] * src/base/ftobjs.c (FT_Get_Next_Char): updated to new FT_CMap definitions --- src/base/ftobjs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c index e7dbdd7fd..040e9efb8 100644 --- a/src/base/ftobjs.c +++ b/src/base/ftobjs.c @@ -1507,9 +1507,8 @@ #ifdef FT_CONFIG_OPTION_USE_CMAPS FT_CMap cmap = FT_CMAP( face->charmap ); - result = cmap->clazz->char_next( cmap, charcode, &gindex ); - if ( gindex == 0 ) - result = 0; + gindex = cmap->clazz->char_next( cmap, &charcode ); + result = ( gindex == 0 ) ? 0 : charcode; #else /* !FT_CONFIG_OPTION_USE_CMAPS */ driver = face->driver; result = driver->clazz->get_next_char( face->charmap, charcode );