summaryrefslogtreecommitdiff
path: root/source/fitz/draw-device.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-05-28 18:14:45 +0100
committerRobin Watts <robin.watts@artifex.com>2016-05-30 16:08:47 +0100
commitba5dd08df9b477dbfa5ee9b2c5b56f41dfa8bc85 (patch)
tree64cc68bfae52ef7756dfe9075b8bb97b6c924feb /source/fitz/draw-device.c
parent19c07d7c1f11e428dc3fcc8222802bf58efbe00d (diff)
downloadmupdf-ba5dd08df9b477dbfa5ee9b2c5b56f41dfa8bc85.tar.xz
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.
Diffstat (limited to 'source/fitz/draw-device.c')
-rw-r--r--source/fitz/draw-device.c2
1 files changed, 2 insertions, 0 deletions
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--)