diff options
author | Werner Lemberg <wl@gnu.org> | 2004-11-19 10:35:52 +0000 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2004-11-19 10:35:52 +0000 |
commit | b9ff415dfbffb540c4b2df3671fc95fcb07caf66 (patch) | |
tree | 2e420306c3cfa24c5e03d8d478d0bef59e8e6ed8 /src/cache/ftcglyph.c | |
parent | bbdee28f75e750aa9c95056e270daf5085c3d47b (diff) |
Fix a serious bug in the TT hinter.
* src/truetype/ttgload.c (TT_Process_Simple_Glyph): Don't shift
points vertically before hinting.
* docs/CHANGES: Updated.
* src/cache/ftcglyph.c (FTC_GNode_UnselectFamily,
FTC_GCache_Lookup): A new try to fix comparison with zero.
Diffstat (limited to 'src/cache/ftcglyph.c')
-rw-r--r-- | src/cache/ftcglyph.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cache/ftcglyph.c b/src/cache/ftcglyph.c index ede5c126..46d5965b 100644 --- a/src/cache/ftcglyph.c +++ b/src/cache/ftcglyph.c @@ -47,7 +47,7 @@ gnode->family = NULL; - if ( family && --(FT_Long)(family->num_nodes) <= 0 ) + if ( family && --family->num_nodes == 0 ) FTC_FAMILY_FREE( family, cache ); } @@ -189,7 +189,7 @@ error = FTC_Cache_Lookup( FTC_CACHE( cache ), hash, query, anode ); - if ( --(FT_Long)(family->num_nodes) <= 0 ) + if ( --family->num_nodes == 0 ) FTC_FAMILY_FREE( family, cache ); } return error; |