Reset the automatic undo/redo mechanism so that commiting pending

2008-01-23  Martin Nordholts  <martinn@svn.gnome.org>

	* app/tools/gimprectangleselecttool.c
	(gimp_rect_select_tool_execute): Reset the automatic undo/redo
	mechanism so that commiting pending rectangles with Return
	works (bug #511599).

svn path=/trunk/; revision=24696
This commit is contained in:
Martin Nordholts 2008-01-23 20:43:44 +00:00 committed by Martin Nordholts
parent 087268e6fa
commit d089ea9c3e
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2008-01-23 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimprectangleselecttool.c
(gimp_rect_select_tool_execute): Reset the automatic undo/redo
mechanism so that commiting pending rectangles with Return
works (bug #511599).
2008-01-23 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-selection.c: show the selection,

View file

@ -779,6 +779,10 @@ gimp_rect_select_tool_execute (GimpRectangleTool *rectangle,
gimp_rect_select_tool_update_option_defaults (rect_sel_tool,
FALSE);
/* Reset the automatic undo/redo mechanism */
priv->undo = NULL;
priv->redo = NULL;
return TRUE;
}