summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-07-10 21:25:45 +0200
committerTor Andersson <tor@ghostscript.com>2010-07-10 21:25:45 +0200
commit021329447f940512267171aa64c1288e45498c6e (patch)
treea8c84430d649103e4097db8227c91cfb6aa8dc1d
parenta8a47bb3f214467016d2b37d95e98ffdec4f7ba1 (diff)
downloadmupdf-021329447f940512267171aa64c1288e45498c6e.tar.xz
Don't assert on edge list bbox size if the edge list is empty.
-rw-r--r--draw/pathscan.c6
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);