Commit 13041a7e authored by Karine Delvare's avatar Karine Delvare Committed by Karine Delvare

fixed assignment of local variable "rectangle_exists".

2005-09-25  Karine Delvare  <kdelvare@nerim.net>

  * app/tools/gimpcroptool.c: fixed assignment of local variable
  "rectangle_exists".
parent 44ba7755
2005-09-25 Karine Delvare <kdelvare@nerim.net>
* app/tools/gimpcroptool.c: fixed assignment of local variable
"rectangle_exists".
2005-09-25 Sven Neumann <sven@gimp.org>
* app/tools/gimpnewrectselecttool.c: fixed assignment of local
......
......@@ -227,21 +227,25 @@ gimp_crop_tool_execute (GimpRectangleTool *rectangle,
max_x = gimage->width;
max_y = gimage->height;
rectangle_exists == (x <= max_x && y <= max_y
&& x + w >= 0 && y + h >= 0
&& w > 0 && h > 0);
rectangle_exists = (x <= max_x && y <= max_y &&
x + w >= 0 && y + h >= 0 &&
w > 0 && h > 0);
if (x < 0)
{
w += x;
x = 0;
}
if (y < 0)
{
h += y;
y = 0;
}
if (x + w > max_x)
w = max_x - x;
if (y + h > max_y)
h = max_y - y;
......
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