[gimp/blend-tool-fun: 149/163] app: make color profile conversions undoable again



commit daccf3022f58bc4845ed900b64f58d84f402291e
Author: Michael Natterer <mitch gimp org>
Date:   Wed Oct 21 20:23:55 2015 +0200

    app: make color profile conversions undoable again
    
    which I broke in commit abe3ad37. Spotted by Massimo.

 app/core/gimpimage-color-profile.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpimage-color-profile.c b/app/core/gimpimage-color-profile.c
index 8768adf..a183ad3 100644
--- a/app/core/gimpimage-color-profile.c
+++ b/app/core/gimpimage-color-profile.c
@@ -517,6 +517,11 @@ gimp_image_convert_profile_rgb (GimpImage                *image,
 
       nth_drawable++;
 
+      gimp_drawable_push_undo (drawable, NULL, NULL,
+                               0, 0,
+                               gimp_item_get_width  (GIMP_ITEM (drawable)),
+                               gimp_item_get_height (GIMP_ITEM (drawable)));
+
       gimp_gegl_convert_color_profile (gimp_drawable_get_buffer (drawable),
                                        NULL,
                                        src_profile,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]