color-lcms: accept ICC profiles of device class ColorSpace
From "color: update color-management protocol to xx-v4" onwards, we should accept ICC profiles of device class ColorSpace, as the CM&HDR protocol says. So do that. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
This commit is contained in:
parent
8fdc55c03f
commit
a3fd8f3c97
|
@ -349,9 +349,9 @@ validate_icc_profile(struct lcmsProfilePtr profile, char **errmsg)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (class_sig != cmsSigDisplayClass) {
|
||||
str_printf(errmsg, "ICC profile is required to be of Display device class, "
|
||||
"but it is %s class (0x%08x)",
|
||||
if (class_sig != cmsSigDisplayClass && class_sig != cmsSigColorSpaceClass) {
|
||||
str_printf(errmsg, "ICC profile is required to be of Display or "
|
||||
"ColorSpace device class, but it is %s class (0x%08x)",
|
||||
icc_profile_class_name(class_sig), (unsigned)class_sig);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue