Skip to content
Commit 874243cb authored by Amy spark's avatar Amy spark 👉
Browse files

Address Lab/CMYK space subtleties within KoColorSpaceMaths

Summary:
In T4488, two problems were identified with regards to Lab and CMYK when using KoColorSpaceMaths:
 - Palette loading was broken
 - Calculations themselves were broken: KoColorSpaceMaths assumes [0..1] in floating point whereas Lab has [0.100, -128..+127, -128..+127] and CMYK [0..100].

This patch closes T4488 by making LittleCMS-based profiles (CMYKF32ColorSpace, LabF32ColorSpace) request the profile's bounds prior to initializing the channel defaults, and adjusting the same in the Qt controls. I've also changed KoColorSpaceMaths to account for these bounds.

Maniphest Tasks: T4488

Differential Revision: https://phabricator.kde.org/D6589

Closes T4488
parent bbf8fe69
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment