Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/1608
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Jun 21, 2019
1 parent bfc2e47 commit a7759f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MagickCore/threshold.c
Expand Up @@ -212,6 +212,8 @@ 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)
return(threshold_image);
status=SetImageStorageClass(threshold_image,DirectClass,exception);
if (status == MagickFalse)
{
Expand Down

0 comments on commit a7759f4

Please sign in to comment.