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.
This commit is contained in:
Kristian Rietveld
2016-05-06 20:50:07 +02:00
parent 48721b5152
commit 61a1c877c1

View File

@ -421,7 +421,7 @@ gimp_widget_get_color_profile (GtkWidget *widget)
CFDataGetBytes (data, CFRangeMake (0, CFDataGetLength (data)), CFDataGetBytes (data, CFRangeMake (0, CFDataGetLength (data)),
buffer); buffer);
profile = gimp_color_profile_new_from_icc_profile (data, profile = gimp_color_profile_new_from_icc_profile (buffer,
CFDataGetLength (data), CFDataGetLength (data),
NULL); NULL);