[gimp/metadata-browser] Bug 615227 - Undo while scaling layer freezes GIMP
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] Bug 615227 - Undo while scaling layer freezes GIMP
- Date: Wed, 12 Sep 2012 22:50:42 +0000 (UTC)
commit e75d85b1679905b36181591778dba3b6bbbafd95
Author: Christian Krippendorf <Kontakt-Programming CerebrosuS de>
Date: Fri Feb 11 08:28:43 2011 +0100
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.
app/widgets/gimpundoeditor.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/app/widgets/gimpundoeditor.c b/app/widgets/gimpundoeditor.c
index 0b6baa0..aed78fe 100644
--- a/app/widgets/gimpundoeditor.c
+++ b/app/widgets/gimpundoeditor.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]