Skip to content

Commit

Permalink
Fix broken linkicc
Browse files Browse the repository at this point in the history
  • Loading branch information
mm2 committed Mar 3, 2025
1 parent 04ace9c commit 3a6df15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cmsxform.c
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,8 @@ cmsBool IsProperColorSpace(cmsColorSpaceSignature Check, cmsUInt32Number dwForm
int Space1 = (int) T_COLORSPACE(dwFormat);
int Space2 = _cmsLCMScolorSpace(Check);

if (dwFormat == 0) return TRUE; // Bypass used by linkicc

if (Space1 == PT_ANY) return (T_CHANNELS(dwFormat) == cmsChannelsOf(Check));
if (Space1 == Space2) return TRUE;

Expand Down

0 comments on commit 3a6df15

Please sign in to comment.