[gimp] app: use the new gimp_image_get_icc_profile() instead of _get_icc_parasite()



commit 3b88a346f1d004340d65a7b1e9604eac853c63fb
Author: Michael Natterer <mitch gimp org>
Date:   Wed Jun 17 00:49:59 2015 +0200

    app: use the new gimp_image_get_icc_profile() instead of _get_icc_parasite()
    
    in gimp_image_color_managed_get_icc_profile().

 app/core/gimpimage.c |   18 +-----------------
 1 files changed, 1 insertions(+), 17 deletions(-)
---
diff --git a/app/core/gimpimage.c b/app/core/gimpimage.c
index 72a1458..792935c 100644
--- a/app/core/gimpimage.c
+++ b/app/core/gimpimage.c
@@ -1366,23 +1366,7 @@ static const guint8 *
 gimp_image_color_managed_get_icc_profile (GimpColorManaged *managed,
                                           gsize            *len)
 {
-  const GimpParasite *parasite;
-
-  parasite = gimp_image_get_icc_parasite (GIMP_IMAGE (managed));
-
-  if (parasite)
-    {
-      gsize data_size = gimp_parasite_data_size (parasite);
-
-      if (data_size > 0)
-        {
-          *len = data_size;
-
-          return gimp_parasite_data (parasite);
-        }
-    }
-
-  return NULL;
+  return gimp_image_get_icc_profile (GIMP_IMAGE (managed), len);
 }
 
 static GimpColorProfile


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