Skip to content

Commit a7759f4

Browse files
author
Cristy
committed
https://github.com/ImageMagick/ImageMagick/issues/1608
1 parent bfc2e47 commit a7759f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: MagickCore/threshold.c

+2
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ 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)
216+
return(threshold_image);
215217
status=SetImageStorageClass(threshold_image,DirectClass,exception);
216218
if (status == MagickFalse)
217219
{

0 commit comments

Comments
 (0)