fixed bug in channel_bounds

* app/channel.c: fixed bug in channel_bounds
This commit is contained in:
jaycox 1999-02-22 17:05:31 +00:00
parent f5eea8d62f
commit e1ddd41daf
5 changed files with 20 additions and 16 deletions

View File

@ -1,3 +1,7 @@
1999-02-22 Jay Cox <jaycox@earthlink.net>
* app/channel.c: fixed bug in channel_bounds
Sun Feb 21 22:37:56 MET 1999 Sven Neumann <sven@gimp.org>
* libgimp/Makefile.am

View File

@ -654,10 +654,10 @@ channel_bounds (Channel *mask, int *x1, int *y1, int *x2, int *y2)
}
}
}
if (x1 > x2)
x2 = x1;
if (y1 > y2)
y2 = y1;
if (*x1 > *x2)
*x2 = *x1;
if (*y1 > *y2)
*y2 = *y1;
}
*x2 = BOUNDS (*x2 + 1, 0, GIMP_DRAWABLE(mask)->width);

View File

@ -654,10 +654,10 @@ channel_bounds (Channel *mask, int *x1, int *y1, int *x2, int *y2)
}
}
}
if (x1 > x2)
x2 = x1;
if (y1 > y2)
y2 = y1;
if (*x1 > *x2)
*x2 = *x1;
if (*y1 > *y2)
*y2 = *y1;
}
*x2 = BOUNDS (*x2 + 1, 0, GIMP_DRAWABLE(mask)->width);

View File

@ -654,10 +654,10 @@ channel_bounds (Channel *mask, int *x1, int *y1, int *x2, int *y2)
}
}
}
if (x1 > x2)
x2 = x1;
if (y1 > y2)
y2 = y1;
if (*x1 > *x2)
*x2 = *x1;
if (*y1 > *y2)
*y2 = *y1;
}
*x2 = BOUNDS (*x2 + 1, 0, GIMP_DRAWABLE(mask)->width);

View File

@ -654,10 +654,10 @@ channel_bounds (Channel *mask, int *x1, int *y1, int *x2, int *y2)
}
}
}
if (x1 > x2)
x2 = x1;
if (y1 > y2)
y2 = y1;
if (*x1 > *x2)
*x2 = *x1;
if (*y1 > *y2)
*y2 = *y1;
}
*x2 = BOUNDS (*x2 + 1, 0, GIMP_DRAWABLE(mask)->width);