Skip to content

Commit

Permalink
Merge pull request sass#2606 from mgreter/bugfix/issue-2604
Browse files Browse the repository at this point in the history
Fix edge case converting achromatic colors to HSL
  • Loading branch information
mgreter committed Mar 19, 2018
2 parents 3db67c5 + 5120bdb commit 7e02bc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fn_colors.cpp
Expand Up @@ -170,7 +170,7 @@ namespace Sass {
double s;
double l = (max + min) / 2.0;

if (max == min) {
if (NEAR_EQUAL(max, min)) {
h = s = 0; // achromatic
}
else {
Expand Down

0 comments on commit 7e02bc0

Please sign in to comment.