Fixed warnings about negative rectangle widths/heights when toggling

2007-11-13  Martin Nordholts  <martinn@svn.gnome.org>

	Fixed warnings about negative rectangle widths/heights when
	toggling 'Fixed center' while rubber banding a rectangle.

	* app/tools/gimprectangletool.c
	(gimp_rectangle_tool_set_other_side_coord): Finnishing off with a
	call to gimp_rectangle_tool_check_function() as changing the
	coordinates of the opposite side might swap the orientation of the
	rectangle.

svn path=/trunk/; revision=24151
This commit is contained in:
Martin Nordholts 2007-11-13 21:15:57 +00:00 committed by Martin Nordholts
parent 5582efd62a
commit f211ed5b59
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,14 @@
2007-11-13 Martin Nordholts <martinn@svn.gnome.org>
Fixed warnings about negative rectangle widths/heights when
toggling 'Fixed center' while rubber banding a rectangle.
* app/tools/gimprectangletool.c
(gimp_rectangle_tool_set_other_side_coord): Finnishing off with a
call to gimp_rectangle_tool_check_function() as changing the
coordinates of the opposite side might swap the orientation of the
rectangle.
2007-11-13 Sven Neumann <sven@gimp.org>
* app/core/gimpimage-merge.c (gimp_image_merge_layers): when we

View File

@ -2803,6 +2803,8 @@ gimp_rectangle_tool_set_other_side_coord (GimpRectangleTool *rect_tool,
g_object_set (rect_tool,
other_y, other_side_y,
NULL);
gimp_rectangle_tool_check_function (rect_tool);
}
/**