Skip to content

Commit

Permalink
correct inverted validity test
Browse files Browse the repository at this point in the history
Fixes #14498
  • Loading branch information
ralfbrown authored and TurboGit committed May 16, 2023
1 parent c42afd5 commit eefa5c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/colorspaces.c
Expand Up @@ -2098,7 +2098,7 @@ int dt_colorspaces_conversion_matrices_xyz(const float adobe_XYZ_to_CAM[4][3],
double XYZ_to_CAM[4][3],
double CAM_to_XYZ[3][4])
{
if(!dt_is_valid_colormatrix(in_XYZ_to_CAM[0]))
if(dt_is_valid_colormatrix(in_XYZ_to_CAM[0]))
{
for(int i = 0; i < 9; i++)
XYZ_to_CAM[i/3][i%3] = (double) in_XYZ_to_CAM[i];
Expand Down

0 comments on commit eefa5c7

Please sign in to comment.