* src/base/ftglyph.c (FT_Glyph_To_Bitmap): added code to return succesfully

when the function is called with a bitmap glyph (the previous code simply
    returned with an error)
This commit is contained in:
David Turner 2002-07-08 23:05:14 +00:00
parent 218867e4d8
commit e2903b7f80
2 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,9 @@
2002-07-07 David Turner <david@freetype.org>
* src/base/ftglyph.c (FT_Glyph_To_Bitmap): added code to return succesfully
when the function is called with a bitmap glyph (the previous code simply
returned with an error)
* docs/DEBUG.TXT: adding debugging support documentation
* src/base/ftdebug.c (ft_debug_init), builds/win32/ftdebug.c

View File

@ -591,6 +591,11 @@
goto Bad;
clazz = glyph->clazz;
/* when called with a bitmap glyph, do nothing and return succesfully */
if ( clazz == &ft_bitmap_glyph_class )
goto Exit;
if ( !clazz || !clazz->glyph_prepare )
goto Bad;