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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user