[gimp] libgimpwidgets: Mac OS X: read ICC profile from the correct buffer



commit 61a1c877c1bff54c4b87fad1eb5a4631aa6f5b8d
Author: Kristian Rietveld <kris loopnest org>
Date:   Fri May 6 20:50:07 2016 +0200

    libgimpwidgets: Mac OS X: read ICC profile from the correct buffer
    
    Clearly, the buffer to read the ICC profile from is pointed to by
    "buffer", not "data" which is a CFDataRef. I doubt the old code was
    ever tested.

 libgimpwidgets/gimpwidgetsutils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgimpwidgets/gimpwidgetsutils.c b/libgimpwidgets/gimpwidgetsutils.c
index 6b25349..4557e9e 100644
--- a/libgimpwidgets/gimpwidgetsutils.c
+++ b/libgimpwidgets/gimpwidgetsutils.c
@@ -421,7 +421,7 @@ gimp_widget_get_color_profile (GtkWidget *widget)
             CFDataGetBytes (data, CFRangeMake (0, CFDataGetLength (data)),
                             buffer);
 
-            profile = gimp_color_profile_new_from_icc_profile (data,
+            profile = gimp_color_profile_new_from_icc_profile (buffer,
                                                                CFDataGetLength (data),
                                                                NULL);
 


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