[gs-commits] mupdf - 0.6-140-g4ed4a05 - Don't assert on edge list bbox size if the edge list is empty.
tor
tor at ghostscript.com
Sat Jul 10 21:00:19 UTC 2010
commit 4ed4a0528683284c6d20268944ae3d056f6e41d6
Author: tor <tor at ghostscript.com>
Date: Sat Jul 10 19:25:45 2010 +0000
Don't assert on edge list bbox size if the edge list is empty.
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/draw/pathscan.c b/draw/pathscan.c
index fa3a6e9..a667a33 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);
--
git/hooks/post-receive
More information about the gs-commits
mailing list