mirror of https://github.com/GNOME/gimp.git
fixed bug in channel_bounds
* app/channel.c: fixed bug in channel_bounds
This commit is contained in:
parent
f5eea8d62f
commit
e1ddd41daf
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue