From e10ea2afd9a5868d4ec1ff3a2b99bcd64ce45816 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Sun, 27 Jul 2003 01:10:15 +0000 Subject: [PATCH] Fix confusion between boolean and FT_Error return. (GSUB equivalent of fix Sat Jul 26 21:06:26 2003 Owen Taylor * pango/opentype/ftxgsub.c (Load_EmptyOrClassDefinition): Fix confusion between boolean and FT_Error return. (GSUB equivalent of fix for #108358) --- src/ftxgsub.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ftxgsub.c b/src/ftxgsub.c index aedc551..ff42dc6 100644 --- a/src/ftxgsub.c +++ b/src/ftxgsub.c @@ -2969,12 +2969,13 @@ if ( class_offset ) { if ( !FILE_Seek( class_offset + base_offset ) ) - error = Load_ClassDefinition( cd, limit, stream ) == TT_Err_Ok; + error = Load_ClassDefinition( cd, limit, stream ); } else error = Load_EmptyClassDefinition ( cd, stream ); - (void)FILE_Seek( cur_offset ); + if (error == TT_Err_Ok) + (void)FILE_Seek( cur_offset ); /* Changes error as a side-effect */ return error; } -- 2.7.4