Commit 92f5a8b4 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

terminate variable argument list. Fixes bug #315255.

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

	* app/tools/gimprectangletool.c: terminate variable argument list.
	Fixes bug #315255.
parent 70a691bd
2005-09-05 Sven Neumann <sven@gimp.org>
* app/tools/gimprectangletool.c: terminate variable argument list.
Fixes bug #315255.
2005-09-05 Michael Natterer <mitch@gimp.org>
* app/actions/edit-actions.c
......
......@@ -1867,13 +1867,15 @@ gimp_rectangle_tool_motion (GimpTool *tool,
if (function == RECT_CREATING)
{
if (inc_x < 0 && inc_y < 0)
g_object_set (rectangle, "function", RECT_RESIZING_UPPER_LEFT);
function = RECT_RESIZING_UPPER_LEFT;
else if (inc_x < 0 && inc_y > 0)
g_object_set (rectangle, "function", RECT_RESIZING_LOWER_LEFT);
function = RECT_RESIZING_LOWER_LEFT;
else if (inc_x > 0 && inc_y < 0)
g_object_set (rectangle, "function", RECT_RESIZING_UPPER_RIGHT);
function = RECT_RESIZING_UPPER_RIGHT;
else if (inc_x > 0 && inc_y > 0)
g_object_set (rectangle, "function", RECT_RESIZING_LOWER_RIGHT);
function = RECT_RESIZING_LOWER_RIGHT;
g_object_set (rectangle, "function", function, NULL);
}
gimp_draw_tool_resume (GIMP_DRAW_TOOL (tool));
......
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