Skip to content

Commit 604588f

Browse files
author
Cristy
committed
https://github.com/ImageMagick/ImageMagick/issues/1609
1 parent a7759f4 commit 604588f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: MagickCore/threshold.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ MagickExport Image *AdaptiveThresholdImage(const Image *image,
212212
threshold_image=CloneImage(image,0,0,MagickTrue,exception);
213213
if (threshold_image == (Image *) NULL)
214214
return((Image *) NULL);
215-
if (width == 0)
215+
if ((width == 0) || (height == 0))
216216
return(threshold_image);
217217
status=SetImageStorageClass(threshold_image,DirectClass,exception);
218218
if (status == MagickFalse)

0 commit comments

Comments
 (0)