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 2981edf commit 55e6dc4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions magick/threshold.c
Expand Up @@ -202,6 +202,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);
if (SetImageStorageClass(threshold_image,DirectClass) == MagickFalse)
{
InheritException(exception,&threshold_image->exception);
Expand Down

0 comments on commit 55e6dc4

Please sign in to comment.