From ba5dd08df9b477dbfa5ee9b2c5b56f41dfa8bc85 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Sat, 28 May 2016 18:14:45 +0100 Subject: Add config.h include file. Introduce FZ_PLOTTER defines to set which defines we required. Add FZ_ENABLE define to set which document handlers are built by default. --- source/fitz/draw-device.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/fitz/draw-device.c') diff --git a/source/fitz/draw-device.c b/source/fitz/draw-device.c index 202e24dd..99032df9 100644 --- a/source/fitz/draw-device.c +++ b/source/fitz/draw-device.c @@ -577,6 +577,7 @@ draw_glyph(unsigned char *colorbv, fz_pixmap *dst, fz_glyph *glyph, fz_span_color_painter_t *fn; fn = fz_get_span_color_painter(dst->n, da, colorbv); + assert(fn); if (fn == NULL) return; while (h--) @@ -591,6 +592,7 @@ draw_glyph(unsigned char *colorbv, fz_pixmap *dst, fz_glyph *glyph, fz_span_painter_t *fn; fn = fz_get_span_painter(da, 1, 0, 255); + assert(fn); if (fn == NULL) return; while (h--) -- cgit v1.2.3