[gimp] app: don't push move and remove undo steps for custom guides
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: don't push move and remove undo steps for custom guides
- Date: Sun, 3 Apr 2016 18:33:22 +0000 (UTC)
commit 0e050bed7c10b8cef5bcb348ff9ca97245d72f1b
Author: Michael Natterer <mitch gimp org>
Date: Sun Apr 3 20:31:56 2016 +0200
app: don't push move and remove undo steps for custom guides
app/core/gimpimage-guides.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpimage-guides.c b/app/core/gimpimage-guides.c
index 4eafcb3..f698f04 100644
--- a/app/core/gimpimage-guides.c
+++ b/app/core/gimpimage-guides.c
@@ -114,6 +114,9 @@ gimp_image_remove_guide (GimpImage *image,
private = GIMP_IMAGE_GET_PRIVATE (image);
+ if (gimp_guide_is_custom (guide))
+ push_undo = FALSE;
+
if (push_undo)
gimp_image_undo_push_guide (image, C_("undo-type", "Remove Guide"), guide);
@@ -141,6 +144,9 @@ gimp_image_move_guide (GimpImage *image,
else
g_return_if_fail (position <= gimp_image_get_width (image));
+ if (gimp_guide_is_custom (guide))
+ push_undo = FALSE;
+
if (push_undo)
gimp_image_undo_push_guide (image, C_("undo-type", "Move Guide"), guide);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]