mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
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:
parent
3436ae4674
commit
9e76b64f13
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue