diff options
author | Sebastian Rasmussen <sebras@hotmail.com> | 2008-08-24 18:04:30 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@hotmail.com> | 2008-08-24 18:04:30 +0200 |
commit | 49b0563f8c28e37bba00ec491ee9c95d23ce4339 (patch) | |
tree | a725c840949afeb559eec58df50885f81c6babb7 /raster | |
parent | e739f8220e3491f1f2038cbbe8ad0eb1ff2ce115 (diff) | |
download | mupdf-49b0563f8c28e37bba00ec491ee9c95d23ce4339.tar.xz |
Don't try to draw zero dimensioned image.
Diffstat (limited to 'raster')
-rw-r--r-- | raster/render.c | 2 |
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); |