From 0e6d8a650ba4d563aae020342addeb603668d2ad Mon Sep 17 00:00:00 2001 From: xzyfer Date: Wed, 28 Mar 2018 22:30:49 +1100 Subject: [PATCH] Fix merging of nested media queries with not There was a typo when this logic was ported over from Ruby Sass. Fixes #2425 Spec https://github.com/sass/sass-spec/pull/1243 --- src/cssize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cssize.cpp b/src/cssize.cpp index 4c062a628..6a12fdf7b 100644 --- a/src/cssize.cpp +++ b/src/cssize.cpp @@ -559,7 +559,7 @@ namespace Sass { std::string m1 = std::string(mq1->is_restricted() ? "only" : mq1->is_negated() ? "not" : ""); std::string t1 = mq1->media_type() ? mq1->media_type()->to_string(ctx.c_options) : ""; - std::string m2 = std::string(mq2->is_restricted() ? "only" : mq1->is_negated() ? "not" : ""); + std::string m2 = std::string(mq2->is_restricted() ? "only" : mq2->is_negated() ? "not" : ""); std::string t2 = mq2->media_type() ? mq2->media_type()->to_string(ctx.c_options) : "";