[gimp] plug-ins: use an undo group in map-object
- From: Mikael Magnusson <mikachu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: use an undo group in map-object
- Date: Sun, 20 Feb 2011 12:54:59 +0000 (UTC)
commit 492ab89b4e8d169394ef2f27745db813390ccf6a
Author: Mikael Magnusson <mikachu src gnome org>
Date: Sun Feb 20 13:20:38 2011 +0100
plug-ins: use an undo group in map-object
plug-ins/map-object/map-object-apply.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/map-object/map-object-apply.c b/plug-ins/map-object/map-object-apply.c
index 680428f..f808a62 100644
--- a/plug-ins/map-object/map-object-apply.c
+++ b/plug-ins/map-object/map-object-apply.c
@@ -240,6 +240,8 @@ compute_image (void)
new_image_id = image_id;
}
+ gimp_image_undo_group_start (new_image_id);
+
if (mapvals.create_new_image ||
mapvals.create_new_layer ||
(mapvals.transparent_background &&
@@ -319,4 +321,6 @@ compute_image (void)
gimp_displays_flush ();
gimp_drawable_detach (output_drawable);
}
+
+ gimp_image_undo_group_end (new_image_id);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]