Skip to content

Commit 35c7032

Browse files
author
Cristy
committed
https://github.com/ImageMagick/ImageMagick/issues/1609
1 parent 55e6dc4 commit 35c7032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: magick/threshold.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ MagickExport Image *AdaptiveThresholdImage(const Image *image,
202202
threshold_image=CloneImage(image,0,0,MagickTrue,exception);
203203
if (threshold_image == (Image *) NULL)
204204
return((Image *) NULL);
205-
if (width == 0)
205+
if ((width == 0) || (height == 0))
206206
return(threshold_image);
207207
if (SetImageStorageClass(threshold_image,DirectClass) == MagickFalse)
208208
{

0 commit comments

Comments
 (0)