[gimp] app: use the new gimp_image_get_icc_profile() instead of _get_icc_parasite()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: use the new gimp_image_get_icc_profile() instead of _get_icc_parasite()
- Date: Tue, 16 Jun 2015 22:51:02 +0000 (UTC)
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]