protocols/cm: fix wp invalid luminance check (#10752)
This commit is contained in:
parent
d037c54260
commit
bd5703d5c6
1 changed files with 1 additions and 1 deletions
|
|
@ -608,7 +608,7 @@ CColorManagementParametricCreator::CColorManagementParametricCreator(SP<CWpImage
|
|||
r->error(WP_IMAGE_DESCRIPTION_CREATOR_PARAMS_V1_ERROR_ALREADY_SET, "Luminances already set");
|
||||
return;
|
||||
}
|
||||
if (max_lum < reference_lum || reference_lum <= min) {
|
||||
if (max_lum <= min || reference_lum <= min) {
|
||||
r->error(WP_IMAGE_DESCRIPTION_CREATOR_PARAMS_V1_ERROR_INVALID_LUMINANCE, "Invalid luminances");
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue