Skip to content

Commit

Permalink
Fix edge case converting achromatic colors to HSL
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed Mar 19, 2018
1 parent 87565ec commit 5120bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fn_colors.cpp
Original file line number Diff line number Diff line change
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 5120bdb

Please sign in to comment.