Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/1609
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Jun 21, 2019
1 parent 55e6dc4 commit 35c7032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magick/threshold.c
Expand Up @@ -202,7 +202,7 @@ MagickExport Image *AdaptiveThresholdImage(const Image *image,
threshold_image=CloneImage(image,0,0,MagickTrue,exception);
if (threshold_image == (Image *) NULL)
return((Image *) NULL);
if (width == 0)
if ((width == 0) || (height == 0))
return(threshold_image);
if (SetImageStorageClass(threshold_image,DirectClass) == MagickFalse)
{
Expand Down

0 comments on commit 35c7032

Please sign in to comment.