summaryrefslogtreecommitdiff
path: root/raster
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2008-08-24 18:04:30 +0200
committerSebastian Rasmussen <sebras@hotmail.com>2008-08-24 18:04:30 +0200
commit49b0563f8c28e37bba00ec491ee9c95d23ce4339 (patch)
treea725c840949afeb559eec58df50885f81c6babb7 /raster
parente739f8220e3491f1f2038cbbe8ad0eb1ff2ce115 (diff)
downloadmupdf-49b0563f8c28e37bba00ec491ee9c95d23ce4339.tar.xz
Don't try to draw zero dimensioned image.
Diffstat (limited to 'raster')
-rw-r--r--raster/render.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/raster/render.c b/raster/render.c
index c7d836c8..bbdf019f 100644
--- a/raster/render.c
+++ b/raster/render.c
@@ -410,6 +410,8 @@ DEBUG("image %dx%d %d+%d %s\n{\n", image->w, image->h, image->n, image->a, image
if (fz_isemptyrect(clip))
return fz_okay;
+ if (image->w == 0 || image->h == 0)
+ return fz_okay;
calcimagescale(ctm, image->w, image->h, &dx, &dy);