Bug 615227 - Undo while scaling layer freezes GIMP

Don't run into an infinite loop when the undo editor is used
while we're in the middle of an undo group.
This commit is contained in:
Christian Krippendorf
2011-02-11 08:28:43 +01:00
committed by Michael Natterer
parent b3c8cbd5a5
commit 43b6d6922c

View File

@ -432,7 +432,8 @@ gimp_undo_editor_select_item (GimpContainerView *view,
*/
while (top_undo_item != NULL)
{
gimp_image_undo (image);
if (! gimp_image_undo (image))
break;
top_undo_item = gimp_undo_stack_peek (undo_stack);
}
@ -444,7 +445,8 @@ gimp_undo_editor_select_item (GimpContainerView *view,
*/
while (top_undo_item != undo)
{
gimp_image_undo (image);
if(! gimp_image_undo (image))
break;
top_undo_item = gimp_undo_stack_peek (undo_stack);
}
@ -456,7 +458,8 @@ gimp_undo_editor_select_item (GimpContainerView *view,
*/
while (top_undo_item != undo)
{
gimp_image_redo (image);
if (! gimp_image_redo (image))
break;
top_undo_item = gimp_undo_stack_peek (undo_stack);
}