Skip to content

Commit

Permalink
Fix #1296
Browse files Browse the repository at this point in the history
  • Loading branch information
mbastian committed Feb 14, 2016
1 parent 0a16a98 commit fe4eff4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ private static boolean checkColor2(double l, double a, double b, float[] filter)
// Check that a color is valid: it must verify our checkColor condition, but also be in the color space
return !Double.isNaN(rgb[0]) && rgb[0] >= 0 && rgb[1] >= 0
&& rgb[2] >= 0 && rgb[0] < 256 && rgb[1] < 256 && rgb[2] < 256
&& hcl[0] >= filter[0] && hcl[0] <= filter[1]
&& (filter[0] < filter[1] ? (hcl[0] >= filter[0] && hcl[0] <= filter[1]) : (hcl[0] >= filter[0] || hcl[0] <= filter[1]))
&& hcl[1] >= filter[2] && hcl[1] <= filter[3]
&& hcl[2] >= filter[4] && hcl[2] <= filter[5];
}
Expand Down

0 comments on commit fe4eff4

Please sign in to comment.