diff options
author | Owen Taylor <otaylor@redhat.com> | 2003-07-27 01:10:15 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2003-07-27 01:10:15 +0000 |
commit | c40435ea4976a2d0b2a097e2982a0742bc0e996c (patch) | |
tree | 17cb112fc3a5c0ad7cdbc703a66789e35d5ccfad /pango/opentype | |
parent | b36cd6496c29664387ee38b5f957db954cda1977 (diff) | |
download | pango-c40435ea4976a2d0b2a097e2982a0742bc0e996c.tar.gz |
Fix confusion between boolean and FT_Error return. (GSUB equivalent of fix
Sat Jul 26 21:06:26 2003 Owen Taylor <otaylor@redhat.com>
* pango/opentype/ftxgsub.c (Load_EmptyOrClassDefinition):
Fix confusion between boolean and FT_Error return.
(GSUB equivalent of fix for #108358)
Diffstat (limited to 'pango/opentype')
-rw-r--r-- | pango/opentype/ftxgsub.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pango/opentype/ftxgsub.c b/pango/opentype/ftxgsub.c index aedc551a..ff42dc6a 100644 --- a/pango/opentype/ftxgsub.c +++ b/pango/opentype/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; } |