[gimp] Bug 723392 - Pasting an image replaces color profile with default one



commit 514fbe0d66c86fa2465f4027bd0567535d9d1dc5
Author: Michael Natterer <mitch gimp org>
Date:   Fri Aug 14 22:34:29 2015 +0200

    Bug 723392 - Pasting an image replaces color profile with default one
    
    gimp_edit_extract(): attach the profile to the copied buffer also when
    the source is the image. Fixes "Copy Visible".

 app/core/gimp-edit.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimp-edit.c b/app/core/gimp-edit.c
index d395c14..1d49316 100644
--- a/app/core/gimp-edit.c
+++ b/app/core/gimp-edit.c
@@ -609,7 +609,8 @@ gimp_edit_extract (GimpImage     *image,
                                                  offset_x, offset_y, FALSE);
       g_object_unref (buffer);
 
-      if (GIMP_IS_LAYER (pickable))
+      if (GIMP_IS_LAYER (pickable) ||
+          GIMP_IS_IMAGE (pickable))
         {
           const guint8 *icc_data;
           gsize         icc_len;


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