mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-27 22:37:35 +01:00
connection() scaled the PCS by src.media_white() / dst.media_white() with no check on the divisor, so a v4 profile whose wtpt tag holds zeros (parsed and stored verbatim) gave a NaN scale, and every colour through a direct absolute transform or a paper-simulating proof came out NaN. The transform is now refused with CmsError::Invalid when either white has a zero, negative or non-finite component; the other intents never divide by it and are unchanged. Co-authored-by: wstock <1394687+wstock@users.noreply.github.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>