ext/libsass/cssize.cpp in sassc-1.2.0 vs ext/libsass/cssize.cpp in sassc-1.3.0
- old
+ new
@@ -421,11 +421,13 @@
ss = b->node();
}
else
{
List* mq = merge_media_queries(static_cast<Media_Block*>(b->node()), static_cast<Media_Block*>(parent));
- static_cast<Media_Block*>(b->node())->media_queries(mq);
- ss = b->node();
+ if (mq->length()) {
+ static_cast<Media_Block*>(b->node())->media_queries(mq);
+ ss = b->node();
+ }
}
if (!ss) continue;
ss->tabs(ss->tabs() + b->tabs());