summaryrefslogtreecommitdiff
path: root/src/gd_crop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gd_crop.c')
-rw-r--r--src/gd_crop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gd_crop.c b/src/gd_crop.c
index 532b49b..d51ad67 100644
--- a/src/gd_crop.c
+++ b/src/gd_crop.c
@@ -136,7 +136,7 @@ BGD_DECLARE(gdImagePtr) gdImageCropThreshold(gdImagePtr im, const unsigned int c
return NULL;
}
- if (color < 0 || (!gdImageTrueColor(im) && color >= gdImageColorsTotal(im))) {
+ if (!gdImageTrueColor(im) && color >= gdImageColorsTotal(im)) {
return NULL;
}