From f0f1b6ae15d9f2c9c0dce7325d362c13c15878db Mon Sep 17 00:00:00 2001 From: David Turner Date: Mon, 8 Jul 2002 23:05:14 +0000 Subject: [PATCH] * 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) --- ChangeLog | 4 ++++ src/base/ftglyph.c | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 514adbea4..68360ec1a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2002-07-07 David Turner + * 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 diff --git a/src/base/ftglyph.c b/src/base/ftglyph.c index 1f0989fe5..e6bb33036 100644 --- 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;