From 9e76b64f134ef608bf307fceef9e4c7565fdbb29 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Tue, 30 Jun 2015 12:01:06 +0200 Subject: [PATCH] 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 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libgimpcolor/gimppixbuf.c b/libgimpcolor/gimppixbuf.c index ac1f9ac5ee..efc33a9802 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; }