File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -925,12 +925,19 @@ namespace Sass {
925
925
else if (Color* color = Cast<Color>(operand)) {
926
926
// Use the color name if this was eval with one
927
927
if (color->disp ().length () > 0 ) {
928
- operand = SASS_MEMORY_NEW (String_Constant, operand->pstate (), color->disp ());
929
- u->operand (operand);
928
+ Unary_Expression_Obj cpy = SASS_MEMORY_COPY (u);
929
+ cpy->operand (SASS_MEMORY_NEW (String_Constant, operand->pstate (), color->disp ()));
930
+ return SASS_MEMORY_NEW (String_Quoted,
931
+ cpy->pstate (),
932
+ cpy->inspect ());
930
933
}
931
934
}
932
935
else {
933
- u->operand (operand);
936
+ Unary_Expression_Obj cpy = SASS_MEMORY_COPY (u);
937
+ cpy->operand (operand);
938
+ return SASS_MEMORY_NEW (String_Quoted,
939
+ cpy->pstate (),
940
+ cpy->inspect ());
934
941
}
935
942
936
943
return SASS_MEMORY_NEW (String_Quoted,
You can’t perform that action at this time.
0 commit comments