summaryrefslogtreecommitdiff
path: root/src/cmsxform.c
diff options
context:
space:
mode:
authorMarti Maria <info@littlecms.com>2021-09-01 09:45:20 +0200
committerMarti Maria <info@littlecms.com>2021-09-01 09:45:20 +0200
commit195c218dd3c8338e12563c9641ef89f84cc6f6b4 (patch)
tree01032bd094e666d122a6e6022b5a3a91b8d4a8ca /src/cmsxform.c
parent076cf327b5f0368eb353e6a3d3996561511ab226 (diff)
downloadlcms2-195c218dd3c8338e12563c9641ef89f84cc6f6b4.tar.gz
Unbounded Transform for integer-to-float formats
Color transforms going from integer types to floating point works now in unbounded mode. Thanks to John Papandriopoulos for discovering the issue.
Diffstat (limited to 'src/cmsxform.c')
-rw-r--r--src/cmsxform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmsxform.c b/src/cmsxform.c
index ac7792a..640382c 100644
--- a/src/cmsxform.c
+++ b/src/cmsxform.c
@@ -846,7 +846,7 @@ _cmsTRANSFORM* AllocEmptyTransform(cmsContext ContextID, cmsPipeline* lut,
}
// Check whatever this is a true floating point transform
- if (_cmsFormatterIsFloat(*InputFormat) && _cmsFormatterIsFloat(*OutputFormat)) {
+ if (_cmsFormatterIsFloat(*OutputFormat)) {
// Get formatter function always return a valid union, but the contents of this union may be NULL.
p ->FromInputFloat = _cmsGetFormatter(ContextID, *InputFormat, cmsFormatterInput, CMS_PACK_FLAGS_FLOAT).FmtFloat;