Skip to content

Commit

Permalink
minor fix on previous
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Dec 28, 2013
1 parent 8f4a537 commit 464c219
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/gd/libgd/gd_crop.c
Expand Up @@ -43,6 +43,7 @@ static int gdColorMatch(gdImagePtr im, int col1, int col2, float threshold);
gdImagePtr gdImageCrop(gdImagePtr src, const gdRectPtr crop)
{
gdImagePtr dst;
int y;

/* check size */
if (crop->width<=0 || crop->height<=0) {
Expand Down Expand Up @@ -78,7 +79,7 @@ gdImagePtr gdImageCrop(gdImagePtr src, const gdRectPtr crop)
#if 0
printf("rect->x: %i\nrect->y: %i\nrect->width: %i\nrect->height: %i\n", crop->x, crop->y, crop->width, crop->height);
#endif
int y = crop->y;
y = crop->y;
if (src->trueColor) {
unsigned int dst_y = 0;
while (y < (crop->y + (crop->height - 1))) {
Expand Down

0 comments on commit 464c219

Please sign in to comment.