make ComponentRepeat::vacuous_everywhere() more accurate

This commit is contained in:
Alex Coyte 2017-08-02 13:36:24 +10:00 committed by Matthew Barr
parent 1f3cfdccef
commit d9e2c3daca

View File

@ -234,7 +234,7 @@ void ComponentRepeat::optimise(bool connected_to_sds) {
} }
bool ComponentRepeat::vacuous_everywhere() const { bool ComponentRepeat::vacuous_everywhere() const {
return !m_min; return !m_min || sub_comp->vacuous_everywhere();
} }
bool ComponentRepeat::checkEmbeddedStartAnchor(bool at_start) const { bool ComponentRepeat::checkEmbeddedStartAnchor(bool at_start) const {