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.
This commit is contained in:
Michael Natterer 2015-06-30 12:01:06 +02:00
parent 3436ae4674
commit 9e76b64f13

View file

@ -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;
}