Commit 44ba7755 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

fixed assignment of local variable "rectangle_exists".

2005-09-25  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpnewrectselecttool.c: fixed assignment of local
	variable "rectangle_exists".
parent 839752f8
2005-09-25 Sven Neumann <sven@gimp.org>
* app/tools/gimpnewrectselecttool.c: fixed assignment of local
variable "rectangle_exists".
2005-09-25 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell-callbacks.c
......@@ -5,7 +10,7 @@
the modifiers pressed on <Tab> so NumLock and friends don't
interfere. Fixes bug #317118.
cd2005-09-25 Sven Neumann <sven@gimp.org>
2005-09-25 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimpwidgetsenums.h: added more values to the
GimpZoomType enum.
......
......@@ -256,21 +256,25 @@ gimp_new_rect_select_tool_execute (GimpRectangleTool *rectangle,
max_y = gimage->height;
selection_mask = gimp_image_get_mask (gimage);
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;
......
......@@ -256,21 +256,25 @@ gimp_new_rect_select_tool_execute (GimpRectangleTool *rectangle,
max_y = gimage->height;
selection_mask = gimp_image_get_mask (gimage);
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