Commit e1ee5476a4345f8531d03bdbd131337c2534f864

Werner Lemberg 2016-11-06T12:39:05

* src/base/ftobjs.c (FT_Render_Glyph_Internal): Fix tracing.

diff --git a/ChangeLog b/ChangeLog
index e53fc93..f4b6fe0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2016-11-06  Werner Lemberg  <wl@gnu.org>
 
+	* src/base/ftobjs.c (FT_Render_Glyph_Internal): Fix tracing.
+
+2016-11-06  Werner Lemberg  <wl@gnu.org>
+
 	[sfnt] Improve FT_LOAD_BITMAP_METRICS_ONLY for `sbix' format.
 
 	It's unavoidable to call the PNG engine, but to get the metrics it
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index 060d78e..c701ebc 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -4217,7 +4217,7 @@
     if ( ft_trace_levels[trace_bitmap] >= 3 )
     {
       /* we convert to a single bitmap format for computing the checksum */
-      if ( !error )
+      if ( !error && slot->bitmap.buffer )
       {
         FT_Bitmap  bitmap;
         FT_Error   err;