summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2005-10-23 18:32:05 +0000
committerAdam Jackson <ajax@nwnk.net>2005-10-23 18:32:05 +0000
commitfb3d726bbff1fad62a3d6dbbcf1c397872aadef3 (patch)
treee0a72cc4f681cf9ac76645cc8c672c378cf3c173 /src
parent0f006d82f8edd15e0125800fa3166a147e79b9f5 (diff)
Bug #4721: Fix crash when using Freetype 2.1.10. (Michael Gor)
Diffstat (limited to 'src')
-rw-r--r--src/FreeType/ftfuncs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/FreeType/ftfuncs.c b/src/FreeType/ftfuncs.c
index 8714846..494e338 100644
--- a/src/FreeType/ftfuncs.c
+++ b/src/FreeType/ftfuncs.c
@@ -931,7 +931,8 @@ FT_Do_SBit_Metrics( FT_Face ft_face, FT_Size ft_size, FT_ULong strike_index,
face = (TT_Face)ft_face;
sfnt = (SFNT_Service)face->sfnt;
- if ( strike_index != 0xFFFFU && sfnt->load_sbits ) {
+ if (strike_index != 0xFFFFU && sfnt && sfnt->find_sbit_image &&
+ sfnt->load_sbits) {
/* Check whether there is a glyph sbit for the current index */
error = sfnt->find_sbit_image( face, glyph_index, strike_index,
&range, &strike, &glyph_offset );