summaryrefslogtreecommitdiff
path: root/pango/opentype/ftxgpos.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/opentype/ftxgpos.c')
-rw-r--r--pango/opentype/ftxgpos.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pango/opentype/ftxgpos.c b/pango/opentype/ftxgpos.c
index 012e82d8..8f872f02 100644
--- a/pango/opentype/ftxgpos.c
+++ b/pango/opentype/ftxgpos.c
@@ -4783,12 +4783,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;
}