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 a7759f4 commit 604588f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MagickCore/threshold.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,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);
status=SetImageStorageClass(threshold_image,DirectClass,exception);
if (status == MagickFalse)
Expand Down

0 comments on commit 604588f

Please sign in to comment.