From e93b2e2aa68bf18ac96243840fb0baf4f30d90ca Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 7 Jan 2016 18:54:49 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/curve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/curve.py b/src/curve.py index ee2c7d5..9e1eefe 100644 --- a/src/curve.py +++ b/src/curve.py @@ -399,7 +399,7 @@ def cie_limits(r_min, r_max, g_min = ..., g_max = ..., b_min = ..., b_max = ...) # Check if we can reduce the overhead, we can if the adjustments are identical same = (r_min == g_min == b_min) and (r_max == g_max == b_max) # Check we need to do any adjustment - if (not same) or (not r_min == 0) or (not r_max == 0): + if (not same) or (not r_min == 0) or (not r_max == 1): if same: # Manipulate all curves in one step if their adjustments are identical for i in range(i_size): -- cgit v1.2.3-70-g09d2