From 021329447f940512267171aa64c1288e45498c6e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 10 Jul 2010 21:25:45 +0200 Subject: Don't assert on edge list bbox size if the edge list is empty. --- draw/pathscan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/draw/pathscan.c b/draw/pathscan.c index fa3a6e92..a667a33a 100644 --- a/draw/pathscan.c +++ b/draw/pathscan.c @@ -528,12 +528,12 @@ fz_scanconvert(fz_gel *gel, fz_ael *ael, int eofill, fz_bbox clip, int skipx = clip.x0 - xmin; int clipn = clip.x1 - clip.x0; - assert(clip.x0 >= xmin); - assert(clip.x1 <= xmax); - if (gel->len == 0) return fz_okay; + assert(clip.x0 >= xmin); + assert(clip.x1 <= xmax); + deltas = fz_malloc(xmax - xmin + 1); memset(deltas, 0, xmax - xmin + 1); -- cgit v1.2.3