Skip to content

Commit 55e6dc4

Browse files
author
Cristy
committed
https://github.com/ImageMagick/ImageMagick/issues/1608
1 parent 2981edf commit 55e6dc4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: magick/threshold.c

+2
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ MagickExport Image *AdaptiveThresholdImage(const Image *image,
202202
threshold_image=CloneImage(image,0,0,MagickTrue,exception);
203203
if (threshold_image == (Image *) NULL)
204204
return((Image *) NULL);
205+
if (width == 0)
206+
return(threshold_image);
205207
if (SetImageStorageClass(threshold_image,DirectClass) == MagickFalse)
206208
{
207209
InheritException(exception,&threshold_image->exception);

0 commit comments

Comments
 (0)