Make canceling work a bit better.
2007-12-13 Martin Nordholts <martinn@svn.gnome.org> * app/tools/gimprectangletool.c (gimp_rectangle_tool_button_release): Make canceling work a bit better. svn path=/trunk/; revision=24355
This commit is contained in:

committed by
Martin Nordholts

parent
b7a9087862
commit
453f54584d
@ -1,3 +1,9 @@
|
||||
2007-12-13 Martin Nordholts <martinn@svn.gnome.org>
|
||||
|
||||
* app/tools/gimprectangletool.c
|
||||
(gimp_rectangle_tool_button_release): Make canceling work a bit
|
||||
better.
|
||||
|
||||
2007-12-13 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/base/tile-pyramid.c (tile_pyramid_write_quarter)
|
||||
|
@ -953,9 +953,10 @@ gimp_rectangle_tool_button_release (GimpTool *tool,
|
||||
private->y2 = private->saved_y2;
|
||||
|
||||
/* If the first created rectangle was canceled, halt the tool */
|
||||
if (private->saved_x1 == private->saved_x2 &&
|
||||
private->saved_y1 == private->saved_y2)
|
||||
gimp_rectangle_tool_halt (rect_tool);
|
||||
if (gimp_rectangle_tool_rectangle_is_new (rect_tool))
|
||||
{
|
||||
gimp_rectangle_tool_halt (rect_tool);
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user