Skip to content

Commit

Permalink
While at it ... make use of the now working isEven()
Browse files Browse the repository at this point in the history
Backport of musescore#8033, resp. duplicate of musescore#8034. See also musescore#6021
  • Loading branch information
Jojo-Schmitz committed Aug 13, 2021
1 parent 0612250 commit b3fdbfe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libmscore/lyrics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,12 @@ void Lyrics::layout()
}

bool styleDidChange = false;
if ((_no & 1) && !_even) {
if (isEven() && !_even) {
initTid(Tid::LYRICS_EVEN, /* preserveDifferent */ true);
_even = true;
styleDidChange = true;
}
if (!(_no & 1) && _even) {
if (!isEven() && _even) {
initTid(Tid::LYRICS_ODD, /* preserveDifferent */ true);
_even = false;
styleDidChange = true;
Expand Down Expand Up @@ -600,7 +600,7 @@ QVariant Lyrics::propertyDefault(Pid id) const
{
switch (id) {
case Pid::SUB_STYLE:
return int((_no & 1) ? Tid::LYRICS_EVEN : Tid::LYRICS_ODD);
return int(isEven() ? Tid::LYRICS_EVEN : Tid::LYRICS_ODD);
case Pid::PLACEMENT:
return score()->styleV(Sid::lyricsPlacement);
case Pid::SYLLABIC:
Expand Down

0 comments on commit b3fdbfe

Please sign in to comment.