diff options
author | Tor Andersson <tor@ghostscript.com> | 2010-07-10 21:25:45 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2010-07-10 21:25:45 +0200 |
commit | 021329447f940512267171aa64c1288e45498c6e (patch) | |
tree | a8c84430d649103e4097db8227c91cfb6aa8dc1d | |
parent | a8a47bb3f214467016d2b37d95e98ffdec4f7ba1 (diff) | |
download | mupdf-021329447f940512267171aa64c1288e45498c6e.tar.xz |
Don't assert on edge list bbox size if the edge list is empty.
-rw-r--r-- | draw/pathscan.c | 6 |
1 files 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); |