Skip to content

Commit

Permalink
relayout lyric on ticks == 0
Browse files Browse the repository at this point in the history
if ticks become zero we have to make sure we remove invalid segments
  • Loading branch information
asattely committed Apr 5, 2023
1 parent 41d78fa commit 27f99a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/engraving/libmscore/lyrics.cpp
Expand Up @@ -613,6 +613,11 @@ bool Lyrics::setProperty(Pid propertyId, const PropertyValue& v)
}

_ticks = v.value<Fraction>();
if (_ticks <= Fraction(0, 1)) {
// if no ticks, we have to relayout in order to remove invalid melisma segments
setRemoveInvalidSegments();
layout();
}
break;
case Pid::VERSE:
_no = v.toInt();
Expand Down

0 comments on commit 27f99a6

Please sign in to comment.