Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2995 from mgreter/bugfix/2994-endless-extend-loop
Browse files Browse the repository at this point in the history
Fix selector `isInvisible` logic
  • Loading branch information
mgreter committed Oct 4, 2019
2 parents 35b3293 + c3fdce9 commit 408a883
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ast_selectors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,11 @@ namespace Sass {

bool SelectorList::isInvisible() const
{
if (length() == 0) return true;
for (size_t i = 0; i < length(); i += 1) {
if (!get(i)->isInvisible()) return false;
if (get(i)->isInvisible()) return true;
}
return true;
return false;
}

/////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 408a883

Please sign in to comment.