mirror of https://github.com/GNOME/gimp.git
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:
parent
b3c8cbd5a5
commit
43b6d6922c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue