Don't execute selection if a dead area is clicked.

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

	* app/tools/gimprectangletool.c
	(gimp_rectangle_tool_button_release): Don't execute selection if a
	dead area is clicked.

svn path=/trunk/; revision=22927
This commit is contained in:
Martin Nordholts
2007-07-13 20:49:32 +00:00
committed by Martin Nordholts
parent eed8dc9b68
commit 72ec24da5f
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2007-07-13 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimprectangletool.c
(gimp_rectangle_tool_button_release): Don't execute selection if a
dead area is clicked.
2007-07-13 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimprectangletool.c

View File

@ -783,6 +783,11 @@ gimp_rectangle_tool_button_release (GimpTool *tool,
break;
case GIMP_BUTTON_RELEASE_CLICK:
/* When a dead area is clicked, don't execute. */
if (private->function == RECT_DEAD)
break;
if (gimp_rectangle_tool_execute (rectangle))
gimp_rectangle_tool_halt (rectangle);
break;