[gimp] app: drop workaround for bug #785521
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: drop workaround for bug #785521
- Date: Sat, 9 Sep 2017 21:55:19 +0000 (UTC)
commit 415f869f202e76a51970b46d493ad5426f406b3a
Author: Øyvind Kolås <pippin gimp org>
Date: Sat Sep 9 23:54:08 2017 +0200
app: drop workaround for bug #785521
We now hard depend on a fresher release of GEGL that already has this fix in
it.
app/gegl/gimp-gegl.c | 21 ---------------------
libgimpcolor/gimpcolorprofile.c | 5 +++--
2 files changed, 3 insertions(+), 23 deletions(-)
---
diff --git a/app/gegl/gimp-gegl.c b/app/gegl/gimp-gegl.c
index 3f38293..5028095 100644
--- a/app/gegl/gimp-gegl.c
+++ b/app/gegl/gimp-gegl.c
@@ -69,27 +69,6 @@ gimp_gegl_init (Gimp *gimp)
gimp_babl_init ();
gimp_operations_init (gimp);
-
- if (GEGL_MAJOR_VERSION == 0 &&
- GEGL_MINOR_VERSION == 3 &&
- GEGL_MICRO_VERSION <= 21)
- {
- /* XXX:
- *
- * hot-fix for bug #785521 and duplicates, this code to
- * be removed after GIMP 2.9.6 is released and GIMP depends
- * on 0.3.21 or newer again, we do it also for GEGL 0.3.21
- * since setting it to FALSE when it already is FALSE
- * is no harm.
- */
- GType op_type = g_type_from_name ("GeglOpcopy-buffer_c");
- if (op_type)
- {
- GeglOperationClass *op_class = g_type_class_ref (op_type);
- if (op_class)
- op_class->threaded = FALSE;
- }
- }
}
static void
diff --git a/libgimpcolor/gimpcolorprofile.c b/libgimpcolor/gimpcolorprofile.c
index 41e0c82..2714e3e 100644
--- a/libgimpcolor/gimpcolorprofile.c
+++ b/libgimpcolor/gimpcolorprofile.c
@@ -1470,8 +1470,8 @@ gimp_color_profile_get_format (GimpColorProfile *profile,
const Babl *format,
GError **error)
{
- const Babl *space;
- gchar *babl_error = NULL;
+ const Babl *space;
+ const gchar *babl_error = NULL;
g_return_val_if_fail (GIMP_IS_COLOR_PROFILE (profile), NULL);
g_return_val_if_fail (format != NULL, NULL);
@@ -1479,6 +1479,7 @@ gimp_color_profile_get_format (GimpColorProfile *profile,
space = babl_space_from_icc ((const gchar *) profile->priv->data,
profile->priv->length,
+ BABL_ICC_INTENT_RELATIVE_COLORIMETRIC,
&babl_error);
if (! space)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]