ref: f0f1b6ae15d9f2c9c0dce7325d362c13c15878db
parent: 02c3aede1bc6f26f9d54fbdeeb0c939c00799614
author: David Turner <[email protected]>
date: Mon Jul 8 19:05:14 EDT 2002
* 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)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2002-07-07 David Turner <[email protected]>
+ * 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
--- a/src/base/ftglyph.c
+++ b/src/base/ftglyph.c
@@ -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;