diff --git a/src/eval.cpp b/src/eval.cpp index 7df3953425..89927b8f4b 100644 --- a/src/eval.cpp +++ b/src/eval.cpp @@ -759,7 +759,13 @@ namespace Sass { if (operand->concrete_type() == Expression::NULL_VAL && dynamic_cast(u->operand())) { u->operand(SASS_MEMORY_NEW(ctx.mem, String_Quoted, u->pstate(), "")); } - else u->operand(operand); + // Never apply unary opertions on colors @see #2140 + else if (operand->concrete_type() == Expression::COLOR) { + operand = u->operand(); + } + else { + u->operand(operand); + } String_Constant* result = SASS_MEMORY_NEW(ctx.mem, String_Quoted, u->pstate(), u->inspect());