Commit e1ddd41d authored by jaycox's avatar jaycox
Browse files

fixed bug in channel_bounds


	* app/channel.c: fixed bug in channel_bounds
parent f5eea8d6
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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment