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



commit 9e76b64f134ef608bf307fceef9e4c7565fdbb29
Author: Michael Natterer <mitch gimp org>
Date:   Tue Jun 30 12:01:06 2015 +0200

    Bug 723392 - Pasting an image replaces color profile with default one
    
    gimp_pixbuf_get_icc_profile(): use gdk_pixbuf_get_option() not
    g_object_get() to get the pixbuf's profile.

 libgimpcolor/gimppixbuf.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/libgimpcolor/gimppixbuf.c b/libgimpcolor/gimppixbuf.c
index ac1f9ac..efc33a9 100644
--- a/libgimpcolor/gimppixbuf.c
+++ b/libgimpcolor/gimppixbuf.c
@@ -132,19 +132,18 @@ guint8 *
 gimp_pixbuf_get_icc_profile (GdkPixbuf *pixbuf,
                              gsize     *length)
 {
-  gchar *icc_base64 = NULL;
+  const gchar *icc_base64;
 
   g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL);
   g_return_val_if_fail (length != NULL, NULL);
 
-  g_object_get (pixbuf, "icc-profile", icc_base64, NULL);
+  icc_base64 = gdk_pixbuf_get_option (pixbuf, "icc-profile");
 
   if (icc_base64)
     {
       guint8 *icc_data;
 
       icc_data = g_base64_decode (icc_base64, length);
-      g_free (icc_base64);
 
       return icc_data;
     }


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