Skip to content

Commit 408a883

Browse files
authored
Merge pull request #2995 from mgreter/bugfix/2994-endless-extend-loop
Fix selector `isInvisible` logic
2 parents 35b3293 + c3fdce9 commit 408a883

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ast_selectors.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,10 +381,11 @@ namespace Sass {
381381

382382
bool SelectorList::isInvisible() const
383383
{
384+
if (length() == 0) return true;
384385
for (size_t i = 0; i < length(); i += 1) {
385-
if (!get(i)->isInvisible()) return false;
386+
if (get(i)->isInvisible()) return true;
386387
}
387-
return true;
388+
return false;
388389
}
389390

390391
/////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)