Skip to content

Commit

Permalink
Fix #316555: Invisible breath shouldn't impact layout.
Browse files Browse the repository at this point in the history
Resolves: https://musescore.org/en/node/316555.

Allows Segment::allElementsInvisible() to return true for breath segments if all elements in the segment are invisible.
  • Loading branch information
mattmcclinch committed Feb 3, 2021
1 parent 43cbf06 commit 66c0fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/segment.cpp
Expand Up @@ -1069,7 +1069,7 @@ bool Segment::hasElements(int minTrack, int maxTrack) const

bool Segment::allElementsInvisible() const
{
if (isType(SegmentType::BarLineType | SegmentType::ChordRest | SegmentType::Breath))
if (isType(SegmentType::BarLineType | SegmentType::ChordRest))
return false;

for (Element* e : _elist) {
Expand Down

0 comments on commit 66c0fe1

Please sign in to comment.